Skip to content
Back to formatted view

Raw Message

Message-ID: <1351532629568-4647781.post@n4.nabble.com>
Date: 2012-10-29T17:43:49Z
From: scoyoc
Subject: Help with toupper()

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.