View source: R/read_data_utils.R
refactor | R Documentation |
Help to refactor the factor easier
refactor(x, new_position = c())
x |
a character/factor vector |
new_position |
a integer vector specify what do you want the refactor order look like, e.g., from 1, 2, 3 to 3, 1, 2 |
x <- LETTERS[1:5]
refactor(x, c(5, 1:4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.