powered by
Compares the structural properties of two data frames without comparing actual values. Useful for detecting schema drift.
compare_structure(x, y)
A structure comparison object.
First data frame.
Second data frame.
df1 <- data.frame(id = 1:3, x = c("a", "b", "c")) df2 <- data.frame(id = 1:5, x = c("a", "b", "c", "d", "e"), y = 1:5) compare_structure(df1, df2)
Run the code above in your browser using DataLab