Description Usage Arguments Examples
Match any element in a vector.
1
one_of(cs)
cs
A character vector.
1 2 3 4 5
p6 <- one_of(c("A", "B", "C")) p6("ABCDE") # success: list("A", "BCDE")) p6("BBCDE") # success: list("B", "BCDE")) p6("CBCDE") # success: list("C", "BCDE")) p6("DBCDE") # fail : list()
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.