twist | R Documentation |
twist()
cycles a vector.
sort_numeric()
sorts strings numerically.
as_factor_numeric()
is a variant of as.factor()
to sort levels numerically.
split_consecutive()
groups consecutive integers.
twist(x, n)
sort_numeric(x, width = 3L)
as_factor_numeric(x, width = 3L, ordered = is.ordered(x))
split_consecutive(x)
x |
a vector |
n |
an integer |
width |
the number of digits for zero-padding. |
ordered |
a logical flag passed to |
dplyr::lead()
, dplyr::lag()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.