as_STOMdiet: Convert a data.frame into a STOMdiet object

View source: R/STOMdiet.R

as_STOMdietR Documentation

Convert a data.frame into a STOMdiet object

Description

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

Usage

as_STOMdiet(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 data set in STOMdiet. which were added the call to as.data.frame()

new_prey_var

Variable names to be added to the prey data set in STOMdiet

Value

STOMdiet object

Examples

## Not run: a<-as_STOMdiet(df); head(a)

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