a296180@agate.fmr.com
2002-May-29 11:54 UTC
typo in Introduction to R on dataframes (PR#1609)
In section 6.3 in "An Introduction to R", it says: ". . . as is, non-numeric (character and logical) vectors are coerced to be factors . . . " In the help for ?data.frame, it says: Note: In versions of R prior to 1.4.0 (and in S3) logical columns were converted to factors. I believe that the help for data.frame is correct and that, therefore, An Introduction to R should be changed to: ". . . as is, character vectors are coerced to be factors . . . " Of course, this could reflect my continuing inability to understand dataframes, but I hope not! ;-) Dave Kane -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
maechler@stat.math.ethz.ch
2002-May-31 12:40 UTC
typo in Introduction to R on dataframes (PR#1609)
>>>>> "a296180" == a296180 <a296180@agate.fmr.com> writes:a296180> In section 6.3 in "An Introduction to R", it says: a296180> ". . . as is, non-numeric (character and logical) a296180> vectors are coerced to be factors . . . " a296180> In the help for ?data.frame, it says: a296180> Note: a296180> In versions of R prior to 1.4.0 (and in S3) a296180> logical columns were converted to factors. a296180> I believe that the help for data.frame is correct a296180> and that, therefore, An Introduction to R should be a296180> changed to: a296180> ". . . as is, character vectors are coerced to be a296180> factors . . . " Thank you. Actually, I added ", logicals" earlier in the sentence (in the source which is R-intro.texi !) to @item Numeric vectors, logicals and factors are included as is, and character vectors are coerced to be factors, whose levels are the unique values appearing in the vector. a296180> Of course, this could reflect my continuing a296180> inability to understand dataframes, but I hope not! ;-) well hoped ;-) you are right here. As a matter of fact we are quite happy for careful readers (and reports) of R-intro, because this is something not so interesting to reread for R corers... Hence: Thanks again! Martin -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._