mirror of
https://github.com/msberends/AMR.git
synced 2026-10-01 04:13:33 +02:00
diff for freq, fix for mo_shortname
This commit is contained in:
1 parent
a6aa9e95fb
commit
92c9cc2608
12 files changed
+79
-26
No files matched your search
+2
-2
@@ -25,9 +25,9 @@ Frequency tables (or frequency distributions) are summaries of the distribution
|
||||
|
||||
## Frequencies of one variable
|
||||
|
||||
To only show and quickly review the content of one variable, you can just select this variable in various ways. Let's say we want to get the frequencies of the `sex` variable of the `septic_patients` dataset:
|
||||
To only show and quickly review the content of one variable, you can just select this variable in various ways. Let's say we want to get the frequencies of the `gender` variable of the `septic_patients` dataset:
|
||||
```{r, echo = TRUE}
|
||||
septic_patients %>% freq(sex)
|
||||
septic_patients %>% freq(gender)
|
||||
```
|
||||
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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user