setcols | R Documentation |
convenience function to set columns
sets columns of an object
setcols(dt, old, new)
dt |
data frame/table or matrix |
old |
integer or character or logical vector corresponding to current colnames in dt |
new |
character vector for new column names |
colnamed object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.