pkgdown/mathjax-config.html

Skip to contents

Compares the structural properties of two data frames without comparing actual values. Useful for detecting schema drift.

Usage

compare_structure(x, y)

Arguments

x

First data frame.

y

Second data frame.

Value

A structure comparison object.

Examples

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)