[R] Help with toupper()
scoyoc
scoyoc at gmail.com
Mon Oct 29 18:43:49 CET 2012
Why in toupper() concatenating my column when I use it? I am trying to change
the case of a column in a dataframe to upper case...
> seedlings
Plot Transect SppCode Count
1 M072 2 abco 9
2 M072 1 abco 7
3 M072 1 psme 1
4 M072 3 abco 9
> seedlings["SppCode"] = toupper(seedlings["SppCode"])
And I get...
> seedlings
Plot Transect SppCode Count
1 M072 2 C("ABCO", "ABCO", "PSME", "ABCO") 9
2 M072 1 C("ABCO", "ABCO", "PSME", "ABCO") 7
3 M072 1 C("ABCO", "ABCO", "PSME", "ABCO") 1
4 M072 3 C("ABCO", "ABCO", "PSME", "ABCO") 9
Not what I want. Suggestions?
Thanks,
MVS
--
View this message in context: http://r.789695.n4.nabble.com/Help-with-toupper-tp4647781.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list