Skip to content
Prev 256634 / 398506 Next

Assign Character Value to Data Frame

That column of your data frame contains a factor, rather than character
values. You don't tell us how you created the data frame, but you might
be interested in the stringsAsFactors option to data.frame() and read.table().

Or, if you do actually want a factor for that column, you can use factor()
to change the levels.

Sarah
On Tue, Apr 12, 2011 at 2:20 PM, Sparks, John James <jspark4 at uic.edu> wrote: