setcols: convenience function to set columns sets columns of an object

View source: R/package.R

setcolsR Documentation

convenience function to set columns sets columns of an object

Description

convenience function to set columns

sets columns of an object

Usage

setcols(dt, old, new)

Arguments

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

Value

colnamed object


kevinmhadi/khtools documentation built on Jan. 16, 2025, 4:18 p.m.