c.STOMobs: Combine multiple STOMobs objects

View source: R/STOMobs.R

c.STOMobsR Documentation

Combine multiple STOMobs objects

Description

Method to combine many datasets

Usage

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

Arguments

...

STOMobs objects to put together.

Details

This function combines STOMobs objects by dplyr::bind_rows using each of the two components of the objects. The method is useful when reading large amounts of data in small chunks. 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 STOMobs will be used for the resulting combined STOMobs. The R-Code is modified from the DATRAS R-package (Thanks to Casper Berg)

Value

Combined dataset of class STOMobs.

Examples

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

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