NA
>mists-set-op.Rd
Set operations for run length encoding <NA
>
# S3 method for rle_na intersect(x, y, ...) # S3 method for rle_na union(x, y, ...) # S3 method for rle_na setdiff(x, y, ...)
x, y | Objects returned by |
---|---|
... | other arguments passed on to methods |
#> <Run Length Encoding <NA>[3]> #> $lengths: <int> 2 2 1 #> $indices: <int> 2 8 16#> <Run Length Encoding <NA>[2]> #> $lengths: <int> 3 1 #> $indices: <int> 2 9#> <Run Length Encoding <NA>[2]> #> $lengths: <int> 2 1 #> $indices: <int> 2 9#> <Run Length Encoding <NA>[3]> #> $lengths: <int> 3 2 1 #> $indices: <int> 2 8 16#> <Run Length Encoding <NA>[2]> #> $lengths: <int> 1 1 #> $indices: <int> 8 16#> <Run Length Encoding <NA>[1]> #> $lengths: <int> 1 #> $indices: <int> 4labels <- c("x", "y", "intersect(x, y)", "union(x, y)", "setdiff(x, y)", "setdiff(y, x)") labels <- factor(labels, levels = labels) lst_na_rle <- vctrs::as_list_of( x, y, intersect(x, y), union(x, y), setdiff(x, y), setdiff(y, x) ) autoplot(lst_na_rle, labels)