Possible Duplicate:
R: convert data.frame columns from factors to characters
Follow up on question
Let's say that I upload a csv file into R
DF <- read.csv("C:/Users/David Rogers/Desktop/FILENAME.csv")
In order to perform other functions I need this file in the format as.character. Normnally, I would just do this from the very beginning:
DF <- read.csv("C:/Users/David Rogers/Desktop/FILENAME.csv",
header=TRUE, stringsAsFactors=FALSE)
That would give me what I need, but supposed that I don't want to upload this file from my desktop. Let's say that I already have it in R as the result of previous actions. If I had to use my method I would first have to export the file as csv, and then import it again and add the "header=TRUE, stringsAsFactors=FALSE"
function like in the example above.
Is it possible to avoid this and simply convert the file, rather than exporting it and importing it back again?