daviddalpiaz / appliedstats

:bar_chart: Methods of Applied Statistics Course Textbook Repository
https://book.stat420.org/
154 stars 168 forks source link

What should be done for "TODO: coercion" in chapter3 #129

Closed chadyuu closed 2 years ago

chadyuu commented 2 years ago

TODO: coercion seems to be left unresolved. https://github.com/daviddalpiaz/appliedstats/blob/53b7a49e71120ddb86aab23290ab5cbd2c1919f8/data-and-programming.Rmd#L210

However, I think there is an explanation for coercion as follows. https://github.com/daviddalpiaz/appliedstats/blob/53b7a49e71120ddb86aab23290ab5cbd2c1919f8/data-and-programming.Rmd#L212-L217

Should we delete the TODO line or fix something more?

daviddalpiaz commented 2 years ago

Hmmm. Good catch. I think that explanation is sufficient for the local purposes of this text, but perhaps we should add a footnote to a reference about the details of type coercion in R. Maybe a link to a relevant section of Advanced R? https://adv-r.hadley.nz/

chadyuu commented 2 years ago

I have just created a pull request. Please confirm this update reflects your intention.