Are two Series equal?
Description
This checks whether two Series are equal in values and in their name.
Usage
<Series>$equals(other, null_equal = FALSE, strict = FALSE)
Arguments
other
|
Series to compare with. |
null_equal
|
If TRUE , consider that null values are equal. Overridden by
strict .
|
strict
|
If TRUE , do not allow similar DataType comparison.
Overrides null_equal .
|
Value
A logical value
Examples
#> [1] TRUE
#> [1] TRUE
#> [1] FALSE
#> [1] TRUE
# datatypes are ignored by default
as_polars_series(1:4)$cast(pl$Int16)$equals(as_polars_series(1:4))
#> [1] TRUE
#> [1] FALSE