Description Usage Arguments Value Examples
.SetColumnOrder()
is an internal function that is not intended to be
called by the user. It is called by other FIRST API methods.
1 | .SetColumnOrder(df, col.order)
|
df |
A data frame |
col.order |
A character vector containing the names of the columns in
|
A data frame identical to the the data frame provided in the
df
argument, except with the columns in the order specified in the
col.order
argument. The returned data frame will ahve the same
attributes as the data frame provided in the df
argument.
1 2 | my.df <- data.frame(col3 = 1:3, col1 = 4:6, col2: 7:9)
ordered.df <- .SetColumnOrder(my.df, c("col1", "col2", "col3"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.