coerce-methods: Coerce specimens to data frame objects

coerce-methodsR Documentation

Coerce specimens to data frame objects

Description

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.

Arguments

from

A specimens or a sf object.

Value

A data.frame object.

Examples

# Coerce sf to data.frame
as(churo_survey@collections, "data.frame")

# Coerce specimens to data.frame
as(churo_survey, "data.frame")

kamapu/specimens documentation built on March 1, 2024, 11:15 a.m.