r factor to dataframe code example
Example: r don't generate factors for my dataset
Set "stringsAsFactors" to true like this:
myfile <- read.csv("myfile.csv", stringsAsFactors = TRUE)
Set "stringsAsFactors" to true like this:
myfile <- read.csv("myfile.csv", stringsAsFactors = TRUE)