diff options
author | Marcel Ribeiro Dantas <ribeirodantasdm@gmail.com> | 2022-04-09 00:21:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 00:21:01 +0200 |
commit | c4c53cc95eeb792e25e04871ca7d7b13b11193e9 (patch) | |
tree | a70940b54bacc235f6a3533a0d3672698b14f8b9 /r.html.markdown | |
parent | fbdc0115e9d53cf1b57f0bacd85094402b5af608 (diff) |
Fix warning about stringsAsFactors
In R 4.0.0, stringsAsFactors default value changed from TRUE to FALSE. This commit fixes the warning message in the current file to make this clear for readers.
This commit also updates the list of contributors for this file.
Diffstat (limited to 'r.html.markdown')
-rw-r--r-- | r.html.markdown | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/r.html.markdown b/r.html.markdown index c3422d2d..e42b1f5e 100644 --- a/r.html.markdown +++ b/r.html.markdown @@ -4,6 +4,7 @@ contributors: - ["e99n09", "http://github.com/e99n09"] - ["isomorphismes", "http://twitter.com/isomorphisms"] - ["kalinn", "http://github.com/kalinn"] + - ["mribeirodantas", "http://github.com/mribeirodantas"] filename: learnr.r --- @@ -478,9 +479,10 @@ class(students[,3]) # "factor" nrow(students) # 6 ncol(students) # 3 dim(students) # 6 3 -# The data.frame() function converts character vectors to factor vectors -# by default; turn this off by setting stringsAsFactors = FALSE when -# you create the data.frame +# The data.frame() function used to convert character vectors to factor +# vectors by default; This has changed in R 4.0.0. If your R version is +# older, turn this off by setting stringsAsFactors = FALSE when you +# create the data.frame ?data.frame # There are many twisty ways to subset data frames, all subtly unalike |