Count Elements Matching One Key
Examples
x <- ordered_sequence("a", "b", "c", keys = c(1, 2, 2))
count_key(x, 2)
#> [1] 2
count_key(x, 10)
#> [1] 0
Count Elements Matching One Key
x <- ordered_sequence("a", "b", "c", keys = c(1, 2, 2))
count_key(x, 2)
#> [1] 2
count_key(x, 10)
#> [1] 0