umx_rot: Rotate a vector

umx_rotR Documentation

Rotate a vector

Description

umx_rot rotates the items of a vector (1 place, by default). So: c(1,2,3) -> c(2,3,1)

Usage

umx_rot(vec, na.last = FALSE)

Arguments

vec

vector to rotate

na.last

Whether to set the last value to NA (default = FALSE)

Value

  • mxModel()

References

See Also

Other String Functions: umx_explode_twin_names(), umx_explode(), umx_grep(), umx_names(), umx_paste_names(), umx_str_chars(), umx_str_from_object(), umx_trim(), umx

Examples

umx_rot(1:10)
umx_rot(c(3,4,5,6,7))
# [1] 4 5 6 7 3

umx documentation built on May 29, 2024, 5:40 a.m.

Related to umx_rot in umx...