Skip to content
Prev 384766 / 398502 Next

levels

Hi,

The default value for 'stringsAsFactors' for data.frame() and read.table() changed from TRUE to FALSE in version 4.0.0, per the news() file:

"R now uses a stringsAsFactors = FALSE default, and hence by default no longer converts strings to factors in calls to data.frame() and read.table()."


Using 4.0.2:

data <- data.frame(name, values, stringsAsFactors = TRUE)
[1] "a" "b" "c"


If you see behavioral changes from one version of R to another, especially major version increments, check the news() file.

Regards,

Marc Schwartz