ColNames(metadataobj)/ColKTypes(metadataobj)/ColLabels(metadataobj)
Get/set a vector of names/Ktypes/labels from a metadata object.
Syntax
ColNames(metadataobj)
ColKTypes(metadataobj)
ColLabels(metadataobj)
Arguments
metadataobj
- A list similar to the output of
ColsMetaData()
.
Note: Ktypes are the integer representation: 1 => int, 2 => float, 4 => text/symbol,
0 => model column.
Example
#get names
nms <- ColNames(colsobj)
#set names
ColNames(colsobj) <- c('store_id','price')