setnames: Set the row, column names of a matrix in place

Description Usage Arguments

Description

Similar to the setattr or setnames functions of data.table, but makes it slightly easier to set these attributes in-place for matrices.

Usage

1
2
3
setrownames(x, value)

setcolnames(x, value)

Arguments

x

Either a data.frame, or an array.

value

Either NULL or a vector coercible to character.


kevinushey/Kmisc documentation built on May 20, 2019, 9:08 a.m.