Methods for LinkMap S7 container class
LinkMap-methods.RdMethods for LinkMap S7 container class
Examples
# Setup
a2b <- data.frame(
a = sample(letters[seq(3)], 10, replace = TRUE),
b = sample(LETTERS[seq(3)], 10, replace = TRUE)
)
# Create LinkMap
x <- LinkMap(a2b)
# Basic properties
dim(x)
#> [1] 7 2
dimnames(x)
#> [[1]]
#> [1] "1" "2" "3" "4" "5" "6" "7"
#>
#> [[2]]
#> [1] "a" "b"
#>
# Factor-like properties
levels(x)
#> $a
#> [1] "c" "a" "b"
#>
#> $b
#> [1] "A" "B" "C"
#>
nlevels(x)
#> a b
#> 3 3