data_dict | R Documentation |
Used to generate an easily sharable data dictionary for an R dataframe. This supports the following classes: numeric, integer, logical, Date, character, String, factor, ordered.
data_dict(df, var_include = NULL, var_exclude = NULL, label = FALSE)
df |
Dataframe. |
var_include |
Vector of names of variables that are desired to be included in the data dictionary (default: NULL). |
var_exclude |
Vector of names of variables that are desired to be excluded from the data dictionary (default: NULL). |
label |
Logical value (default = FALSE). If TRUE, then include the variable label for each variable (if assigned). |
Dataframe with 4 columns: variable (variable name), class (variable class), na_pct (the percentage of data which is NA for that variable), and value (an appropriate summary for the variable class).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.