Merge branch 'master' of github.com:hadley/r4ds
This commit is contained in:
		@@ -46,7 +46,7 @@ I've narrowed the data down to 10 variables:
 | 
			
		||||
* `id` - A number ot identify each subject
 | 
			
		||||
* `income` - The self-reported income of each subject
 | 
			
		||||
* `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
 | 
			
		||||
* `race` - The race of 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}
 | 
			
		||||
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:
 | 
			
		||||
class(df$xy)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user