relation2header | R Documentation |
Information associated to categories listed in slot relations can be inserted to slot header for further statistical comparisons.
relation2header(vegtable, ...)
## S3 method for class 'vegtable'
relation2header(vegtable, relation, vars, ...)
vegtable |
An vegtable object. |
... |
Further arguments passed among methods |
relation |
A character value indicating the relation to be used for inserting new variables in slot header. |
vars |
A selection of variables from the relation to be inserted in header. This function will check the existence of the variables in the respective relation and retrieve an error if none is matching the names. If missing in the arguments, all variables of the respective relation will be inserted. |
A vegtable object.
Miguel Alvarez, kamapu78@gmail.com
## Insert publication year of the source into header
veg <- relation2header(Kenya_veg, "REFERENCE", "YEAR")
## Show the frequency of plots per publication year
summary(as.factor(veg$YEAR))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.