View source: R/Composite_table.R
flip_names | R Documentation |
The column names of the resulting Composite_table
will be sorted
lexically
flip_names(dat, id_vars)
dat |
A |
id_vars |
a character vector of column names of |
a Composite_table
dat <- comp_table(
cars1 = head(cars),
cars2 = tail(cars),
data.frame(id = LETTERS[1:6])
)
flip_names(dat)
flip_names(dat, id_vars = "id")
flip_names(dat, id_vars = c("id", "speed.cars1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.