Description Usage Arguments Value Examples
This function is a wrapper for the more cumbersome base R syntax colnames(mydf)[colnames(mydf) == 'oldcolname'] <- 'newcolname' or the function dplyr::rename(mydf,c('foo'='samples'))
1 | renamecol(mydf, oldcolname, newcolname)
|
mydf |
dataframe with column to be renamed |
oldcolname |
character string existing column name |
newcolname |
character string desired new column name |
dataframe
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.