If your factor is in a variable named "source" then first run the command:
dput(levels(source))
and you should see something like:
c("Irrigation", "Rainfed", "rainfed")
(though the exact result will depend on your system)
now you can copy, paste, and edit to get this command:
levels(source) <- c("Irrigation", "Rainfed", "Rainfed")
when you run this command (or the correct version for your system, the
order needs to match) it will change your source factor to have the
appropriate 2 levels.
--
Gregory (Greg) L. Snow Ph.D.
538...@gmail.com