4 ms·
There are a few minor errors: * the explanation of 8.6 is wrong - it's cbind that's coercing all columns to a common type, not data.frame * 8.7 is a bad examp
by hadley 17y ago
There are a few minor errors:
* the explanation of 8.6 is wrong - it's cbind that's coercing all columns to a common type, not data.frame
* 8.7 is a bad example of good R code - use column names not indices!
* in 9 (and elsewhere) it's not necessary to continually strips names off vectors or use return in functions
* 11.2.1 to count TRUEs in logical vector, sum it.
...
- albertcardona 17y agoPlease could you forward these comments to the author? Considering he is offering the pdf for free, he may take errata as well. Thanks!
- hadley 17y agoGood suggestion. Done.
- klugefoo 17y agoI took Prof. Matloff's class about a year ago. I recall him giving out extra credit for mistakes found in his materials. Please send in any errors/comments/suggestions you've found, he appreciates feedback and interest. He's more than willing to explain any curiosities in why he chose to do something, a rare trait that makes a good teacher.