veg_relation: Retrieve or replace relations in vegtable objects.
Description
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.
Usage
# S4 method for vegtable,character
veg_relation(vegtable, relation,
match_header=FALSE, ...)
veg_relation(vegtable, relation) <- value
Arguments
vegtable
An object of class '>vegtable.
relation
A character value indicating the veg_relation to be retrieved or
replaced.
match_header
A logical vector, whether only levels occurring in slot
'header' should be considered or all.
value
A data frame containing the new veg_relation.
...
Further arguments to be passed among methods.
Value
This function retrieves and object of class 'data.frame'.
In the replacement method, an object of class
'>vegtable including 'value' in the slot
'relations'.