View source: R/cleaning_check.R
checkingvariables | R Documentation |
Function showing a summary of the variable and the number of missings for data cleaning
checkingvariables(data, variable, tosplitby, makefactor = NA)
data |
The data to use. Not in quotes |
variable |
The variable to use.formatted as data$variable - in quotes |
tosplitby |
The variable to split the missings by - in quotes |
makefactor |
if not NA, makes variable is turned to factor |
If the variable is a character or factor, the number of non-missing levels and
if there's less than 200 levels - the levels and how many rows in each
if there's more than 200 levels - the proportion of levels that are unique. If the variables is numeric returns a summary The number of missing variables broken down by 'tosplitby'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.