[R] Changing names of a string variable

Erik Iverson eriki at ccbr.umn.edu
Tue Dec 7 20:35:35 CET 2010



Phil Spector wrote:
> Jahan -
>    Try
> 
> dat$target = toupper(dat$target)


Note that in this case, the above *will* coerce dat$target
to a character vector, which may or may not be what
is intended.



More information about the R-help mailing list