default_colnames | R Documentation |
Assign Generic Column Names to an Object
default_colnames(X, name_base = "X")
X |
An object that can receive a |
name_base |
Stem for each default column name. Default |
Old column names are retained unless they are the empty string. Any such column names are replaced by new default names numbered from 1. All columns are treated this way if colnames(X)
is NULL
.
X
, with its colnames attribute modified as described.
X <- matrix(1:16, nrow = 2) default_colnames(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.