Skip to content

Check whether the DataFrame is equal to another DataFrame

Description

Check whether the DataFrame is equal to another DataFrame

Usage

<DataFrame>$equals(other, ..., null_equal = TRUE)

Arguments

other DataFrame to compare with.
These dots are for future extensions and must be empty.
null_equal Consider null values as equal.

Value

A logical value

Examples

library("polars")

dat1 <- as_polars_df(iris)
dat2 <- as_polars_df(iris)
dat3 <- as_polars_df(mtcars)
dat1$equals(dat2)
#> [1] TRUE
dat1$equals(dat3)
#> [1] FALSE