View source: R/compare_variables.R
| compare_variables | R Documentation |
Compares the structural attributes of two datasets including column names, data types, and variable ordering. Identifies common columns and reports columns that exist in only one dataset.
compare_variables(df1, df2)
df1 |
A data frame representing the first dataset. |
df2 |
A data frame representing the second dataset. |
A list containing variable comparison details and discrepancy count.
df1 <- data.frame(id = 1:3, name = c("A", "B", "C"))
df2 <- data.frame(id = 1:3, name = c("A", "B", "C"), score = c(90, 80, 70))
compare_variables(df1, df2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.