parent
e2dc2d9e42
commit
83b0fa9132
2
tidy.Rmd
2
tidy.Rmd
|
@ -285,7 +285,7 @@ table3 %>%
|
|||
|
||||
(Formally, `sep` is a regular expression, which you'll learn more about in [strings].)
|
||||
|
||||
Look carefully at the column types: you'll notice that `case` and `population` are character columns. This is the default behaviour in `separate()`: it leaves the type of the column as is. Here, however, it's not very useful as those really are numbers. We can ask `separate()` to try and convert to better types using `convert = TRUE`:
|
||||
Look carefully at the column types: you'll notice that `cases` and `population` are character columns. This is the default behaviour in `separate()`: it leaves the type of the column as is. Here, however, it's not very useful as those really are numbers. We can ask `separate()` to try and convert to better types using `convert = TRUE`:
|
||||
|
||||
```{r}
|
||||
table3 %>%
|
||||
|
|
Loading…
Reference in New Issue