cmp_vars | R Documentation |
Compare the existence of variables in a list of dataframes
cmp_vars(l)
l |
A list of dataframes. |
A dataframe comparing the existence ex1
, ex2
, ... for
all variables var
in the dataframes in l
. The logical column
ex_diff
indicates, if there are differences.
df <- data.frame(fbnr = 1:10, sex = c(2, 1, 2, 1, 1, 2, 2, 1, 2, 1), age = c("24", "23", "23", "41", "23", "39", "30", "18", "31", "48")) df2 <- df %>% dplyr::mutate(new_var = 1) %>% dplyr::select(-sex) cmp_vars(list(df, df2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.