coerce-methods | R Documentation |
A straight-forward method to coerce objects of class specimens to data.frame. In the case that the collection is an object of class sf, coordinate values will be extracted as coord_x and coord_y.
In the case of multiple determinations in the history of a specimen only the newest one will be included in the data frame.
from |
A specimens or a sf object. |
A data.frame object.
# Coerce sf to data.frame
as(churo_survey@collections, "data.frame")
# Coerce specimens to data.frame
as(churo_survey, "data.frame")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.