matloff / fasteR

Fast Lane to Learning R!
958 stars 154 forks source link

Minor typos and other in Lesson 5 #14

Open khangquangtran opened 2 years ago

khangquangtran commented 2 years ago

Typo 1, near the beginning of Lesson 5:

Note that that row would also be cnsidered a vector. The third column as a whole would be the vector of all ages in our dataset.

"cnsidered" should be replaced by "considered".

Typo 2, before the first Your Turn:

The element in row 3, column 1 in the data frame tg is element 3 in the vector tg$letn. This duality between data frames and vectors is often exploited in R.

Shouldn't it be "the vector tg$len"?

Other: The formatting of the following is a bit strange:

> ?ToothGrowth ``` (The data turn out to be on guinea pigs, with orange juice or Vitamin C as growth supplements.) Let's take a quick look from the command line.

``` r > head(ToothGrowth) len supp dose 1 4.2 VC 0.5 2 11.5 VC 0.5 3 7.3 VC 0.5 4 5.8 VC 0.5 5 6.4 VC 0.5 6 10.0 VC 0.5

matloff commented 2 years ago

Thanks VERY much for all your help.

The formatting seems fine when viewed with the Chrome and Firefox browsers.

Norm

On Tue, Aug 30, 2022 at 01:47:32AM -0700, Khang Tran wrote:

Other: The formatting of the following is a bit strange:

 > ?ToothGrowth
 ``` (The data turn out to be on guinea pigs, with orange juice or
 Vitamin C as growth supplements.) Let's take a quick look from the
 command line.

 ``` r
 > head(ToothGrowth)
 len supp dose
 1 4.2 VC 0.5
 2 11.5 VC 0.5
 3 7.3 VC 0.5
 4 5.8 VC 0.5
 5 6.4 VC 0.5
 6 10.0 VC 0.5

--