Read the NEWS about R4.0.0 [1] (search for stringsAsFactors), or read any of the many announcements in blogs and forums around the Internet.
[1] https://cran.r-project.org/doc/manuals/r-release/NEWS.html On July 15, 2020 1:31:06 AM PDT, andy elprama <andy.elpr...@gmail.com> wrote: >Dear R-users, > >Something strange happened within the command "levels" > >R version 3.6.1 >name <- c("a","b","c") >values <- c(1,2,3) >data <- data.frame(name,values) >levels(data$name) >[1] "a" "b" "c" > >R version 4.0 >name <- c("a","b","c") >values <- c(1,2,3) >data <- data.frame(name,values) >levels(data$name) >[1] NULL > >What is happening here? > > [[alternative HTML version deleted]] > >______________________________________________ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. -- Sent from my phone. Please excuse my brevity. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.