Description Usage Arguments Value Examples
View source: R/promote_colnames.R
Promote Row to Column Names
1 | promote_colnames(.df, rownum = 1)
|
.df |
a data frame |
rownum |
numeric. The row in the data frame to be promoted to column names |
a data frame with the promoted row as column names
1 2 | df <- data.frame(v1 = c("X", "123.45"), v2 = c("Y", "345.67"))
promote_colnames(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.