1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-26 05:26:13 +01:00

vignet fix

This commit is contained in:
dr. M.S. (Matthijs) Berends 2018-09-07 09:32:31 +02:00
parent c5073f2fd1
commit 0de65438b1

View File

@ -39,11 +39,11 @@ septic_patients %>%
freq()
# or the preferred way: using a pipe to pass the variable on to the freq function
septic_patients %>% freq(sex) # this also shows 'age' in the title
septic_patients %>% freq(sex) # this also shows 'sex' in the title
```
This will all lead to the following table:
```{r, echo = TRUE}
```{r, echo = FALSE}
freq(septic_patients$sex)
```
This immediately shows the class of the variable, its length and availability (i.e. the amount of `NA`), the amount of unique values and (most importantly) that among septic patients men are more prevalent than women.