Merge branch 'master' of github.com:hadley/r4ds
This commit is contained in:
commit
baa9b529d3
|
@ -46,7 +46,7 @@ I've narrowed the data down to 10 variables:
|
||||||
* `id` - A number ot identify each subject
|
* `id` - A number ot identify each subject
|
||||||
* `income` - The self-reported income of each subject
|
* `income` - The self-reported income of each subject
|
||||||
* `height` - The height of each subject in inches
|
* `height` - The height of each subject in inches
|
||||||
* `weight` - The weight of each subject in inches
|
* `weight` - The weight of each subject in pounds
|
||||||
* `sex` - The sex of each subject
|
* `sex` - The sex of each subject
|
||||||
* `race` - The race of each subject
|
* `race` - The race of each subject
|
||||||
* `education` - The number of years of education completed by each subject
|
* `education` - The number of years of education completed by each subject
|
||||||
|
|
|
@ -42,7 +42,7 @@ You might notice that these issues revolve around data frames. That's unfortunat
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
df <- data.frame(xy = c("x", "y"))
|
df <- data.frame(xy = c("x", "y"))
|
||||||
# Character vectors work hard to work with for a long time, so R
|
# Character vectors were hard to work with for a long time, so R
|
||||||
# helpfully converts to a factor for you:
|
# helpfully converts to a factor for you:
|
||||||
class(df$xy)
|
class(df$xy)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue