as_STOMobs: Convert a data.frame into a STOMobs object

View source: R/STOMobs.R

as_STOMobsR Documentation

Convert a data.frame into a STOMobs object

Description

Method to convert an object of class data.frame into an object of class STOMobs.

Usage

as_STOMobs(d, new_pred_var, new_prey_var)

Arguments

d

Stomach data set on data.frame format. d must have been created from a call to of class as.data.frame().

new_pred_var

Variable names to be added to the predator (PRED) data set in STOMobs. which were added the call to as.data.frame()

new_prey_var

Variable names to be added to the prey (PREY) data set in STOMobs

Value

STOMobs object

Examples

## Not run: a<-as_STOMobs(df); a

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