as.data.frame.STOMobs: Convert a STOMobs into a data.frame

View source: R/STOMobs.R

as.data.frame.STOMobsR Documentation

Convert a STOMobs into a data.frame

Description

Method to convert an object of class STOMobs into a data frame (and tibble). Information on sampling and predators are copied to each record of prey information.

Usage

## S3 method for class 'STOMobs'
as.data.frame(stom, add_empty = TRUE)

Arguments

stom

Stomach data set of class STOMobs.

add_empty

Insert prey "other" with prey weight (prey_w) =0 for samples with only empty stomachs.

Value

STOMobs object transformed to a "flat" data frame.

See Also

as_STOMobs

Examples

## Not run: a<-as.data.frame(stom); a; as_STOMobs(a)

MortenVinther/FishStomachs documentation built on Feb. 14, 2025, 7:33 a.m.