setcols.Rd
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)
data frame/table or matrix
integer or character or logical vector corresponding to current colnames in dt
character vector for new column names
colnamed object
colnamed object