setcols | R Documentation |
convenience function to set columns
sets columns of an object
convenience function to set columns
sets columns of an object
setcols(dt, old, new)
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
colnamed object
Kevin Hadi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.