c.STOMdiet: Combine multiple STOMdiet objects

View source: R/STOMdiet.R

c.STOMdietR Documentation

Combine multiple STOMdiet objects

Description

Method to combine many datasets of the class STOMdiet

Usage

## S3 method for class 'STOMdiet'
c(...)

Arguments

...

STOMdiet objects to put together.

Details

This function combines STOMdiet objects by dplyr::bind_rows using each of the two components of the objects. The method is useful for combining diet data from a number of predator that do not use the same raising procedures. If the same stomach_id is present within different datasets the method will stop. If a variable name is only present in some of the datasets, the variable will be added to the remaining datasets (filled with NA) and a warning will be triggered. The control attributes from the first STOMdiet will be used for the resulting combined STOMdiet The R-Code is modified from the DATRAS R-package (Thanks to Casper Berg)

Value

Combined dataset of class STOMdiet.

Examples

## Not run: ab<-c(a,b)

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