MakeMetaData(data,names,Ktypes,labels)
Sets a new temporary table (worksheet) and returns a base op.
Syntax
MakeMetaData(data,names,Ktypes,labels)
Arguments
data
- A data.frame. The default value is NULL; however,
names
andKtypes
must be supplied ifdata
is NULL. names
- Column names, a character vector. The default value is NULL, but a value
is required if
data
is NULL. Ktypes
- The atomic Ktype: integer column => 1, float => 2, text => 4. The
default value is NULL, but a value is required if
data
is NULL. labels
- Display labels, a character vector. The default value is NULL.
Example
#Example 1:
colnames <- c('transid','store','item','itemname','price',)
kt <- c(1,1,1,4,2)
colsobj <- MakeMetaData(names = colnames, Ktypes = kt)
#Example 2:
colsobj <- MakeMetaData(data = iris,labels = c('Sep Len','Sep Wid',
'Pet Len','Pet Wid'))