Tables providing information about levels of categorical variables in the
header of a Turboveg database are called popups
in Turboveg,
but relations
in vegtable.
Such variables will be converted into factors in the slot header
according
to the levels and their sorting in the respective relation.
veg_relation(vegtable, relation, ...)# S4 method for vegtable,character
veg_relation(vegtable, relation, match_header = FALSE, ...)
veg_relation(vegtable, relation) <- value
# S4 method for vegtable,character,data.frame
veg_relation(vegtable, relation) <- value
relation2header(vegtable, relation, ...)
# S4 method for vegtable,data.frame
relation2header(vegtable, relation, by, vars, ...)
# S4 method for vegtable,character
relation2header(vegtable, relation, ...)
This function retrieves and object of class data.frame
.
In the replacement method, an object of class vegtable, including
value
in the slot relations
.
An object of class vegtable.
A character value indicating the relation table to be retrieved or replaced.
Further arguments to be passed among methods.
A logical vector, whether only levels occurring in slot
header
should be considered or all.
A data frame containing the new veg_relation.
Character value indicating the name of the common column used as
index for inserting values in slot header
.
A character vector with the names of variables to be inserted in
slot header
.
Miguel Alvarez kamapu78@gmail.com
## overview of references
veg_relation(Kenya_veg, "REFERENCE")
Run the code above in your browser using DataLab