Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
jeff's comments incorporated.
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinhgarner committed Jan 20, 2018
1 parent d7ab725 commit f756a8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions measurement.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ afghan %>%
summary()
```

With `income`, `read_csv()` never converts strings to factors by default.
Loading data with either `data()` or`read_csv()` does not convert strings to factors by default; see below with `income`.
To get a summary of the different levels, either convert it to a factor (see [R4DS Ch 15](http://r4ds.had.co.nz/factors.html)), or use `count()`:
```{r}
afghan %>%
Expand Down Expand Up @@ -98,7 +98,7 @@ violent_exp_prop <-
mutate(prop = n / sum(n))
violent_exp_prop
```
The data above is

```{r}
violent_exp_prop %>%
select(-n) %>%
Expand Down Expand Up @@ -440,7 +440,7 @@ scale_colour_parties <-
q + scale_colour_parties
```

```{r fig.width = 7, fig.height = 7}
```{r fig.width = 7, fig.height = 7, warning=FALSE}
congress %>%
ggplot(aes(x = dwnom1, y = dwnom2, colour = party)) +
geom_point() +
Expand Down

0 comments on commit f756a8b

Please sign in to comment.