cf | R Documentation |
factor
from one or more vectorsA factor
is constructed from one or more atomic vectors. If more than
one atomic vector is supplied, then a compound value is constructed by
concatenating the values together. The order of the levels is the natural
order in which the values appear.
cf(x, ..., sep = ";")
x |
An atomic vector. |
... |
Additional atomic vectors (optional). |
sep |
A |
A factor
.
x <- c("A", "B", "A")
y <- c(2, 5, 7)
cf(x, y)
mapping(cf(x, y), c("X", "Y", "Z"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.