pull_columns | R Documentation |
Pull columns in a dataframe to the front
pull_columns(df, first_cols, verbose = TRUE)
df |
data.frame |
first_cols |
character vector: columns to be pulled to the front |
verbose |
TRUE (default) or FALSE |
dataframe with re-ordered columns
df <- data.frame(
symbol = c('A1BG', 'A2M'),
id = c('1', '2'),
name = c('alpha-1-B glycoprotein', 'alpha-2-macroglobulin'),
type = c('proteincoding', 'proteincoding'))
first_cols <- c('id', 'symbol', 'location', 'uniprot')
pull_columns(df, first_cols)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.