mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 06:30:48 +01:00
(v0.7.1.9015) Remove freq()
This commit is contained in:
1 parent
9ac5a34b36
commit
240f03a672
75 files changed
+668
-2877
No files matched your search
+8
-1
@@ -144,7 +144,14 @@ knitr::kable(head(data), align = "c")
|
||||
Now, let's start the cleaning and the analysis!
|
||||
|
||||
# Cleaning the data
|
||||
Use the frequency table function `freq()` to look specifically for unique values in any variable. For example, for the `gender` variable:
|
||||
|
||||
We also created a package dedicated to data cleaning and checking, called the `clean` package. It gets automatically installed with the `AMR` package, so we only have to load it:
|
||||
|
||||
```{r lib clean, message = FALSE}
|
||||
library(clean)
|
||||
```
|
||||
|
||||
Use the frequency table function `freq()` from this `clean` package to look specifically for unique values in any variable. For example, for the `gender` variable:
|
||||
|
||||
```{r freq gender 1, eval = FALSE}
|
||||
data %>% freq(gender) # this would be the same: freq(data$gender)
|
||||
|
||||
Reference in new issue
Block a user