seq_check {eratosthenes} | R Documentation |
Sequence Check
Description
For a list
of partial sequences (of vector
objects), check to see that joint elements of each occur the same order. That is, for two sequences with elements A, B, C, D, E
and B, D, F, E
, all joint elements must occur in the same order to pass the check. Two sequences A, B, C, D, E
and A, F, D, C, E
would not pass this check as the elements C
and D
occur in different orders in either sequence.
Usage
seq_check(obj)
## S3 method for class 'list'
seq_check(obj)
Arguments
obj |
A |
Value
TRUE
or FALSE
Examples
x <- c("A", "B", "C", "D", "E")
y <- c("B", "D", "F", "E")
a <- list(x, y)
seq_check(a)
z <- c("B", "F", "C")
b <- list(x, y, z)
seq_check(b)
[Package eratosthenes version 0.0.2 Index]