This is a convenience function that sets the colnames on an object, in the same manner as stats::setNames
setColNames(object = nm, nm)
an object for which a ‘colnames’ attribute will be meaningful. Default: nm
a character vector of colnames to assign to the object
An object of the same sort as ‘object’ with the new colnames