refTable-constructor {Rgb} | R Documentation |
This function returns a new refTable
object from various arguments.
Notice the new()
alternative can be used to produce an empty object, setting only the fields not the content.
refTable(..., row.names, warn = TRUE)
... |
A |
row.names |
Character vector, the names of the rows for list or vector input. |
warn |
Single logical value, to be passed to the |
An object of class refTable
.
Sylvain Mareschal
# From vectors tab <- refTable(colA=1:5, colB=letters[1:5]) print(tab$extract(3,)) # From list (recycling) columns <- list(number=1, letters=LETTERS) tab <- refTable(columns) print(tab$extract()) # data.frame conversion dataFrame <- data.frame(colA=1:5, colB=letters[1:5]) tab <- refTable(dataFrame) print(tab$extract())