| to_n | R Documentation |
Replicate entries of a vector if required.
to_n(x, n)
x |
( |
n |
( |
x if it has the required length already or is NULL,
otherwise if it is scalar the replicated version of it with n entries.
This function will fail if x is not of length n and/or is not a scalar.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.