rbind.mudata: Combine mudata objects

View source: R/mudata_subset.R

rbind.mudataR Documentation

Combine mudata objects

Description

This implmentation of rbind combines component tables using bind_rows and distinct. When combined object use different datasets, or when subsets of the same object are recombined, this function works well. When this is not the case, it may be necessary to modify the tables such that when they are passed to bind_rows and distinct, no duplicate information exists. This should be picked up by validate_mudata.

Usage

## S3 method for class 'mudata'
rbind(..., validate = TRUE)

Arguments

...

mudata objects to combine

validate

Flag to validate the final object using validate_mudata.

Value

A mudata object

Examples

rbind(
  kentvillegreenwood %>%
    select_params(maxtemp) %>%
    select_locations(starts_with("KENT")),
  kentvillegreenwood %>%
    select_params(mintemp) %>%
    select_locations(starts_with("GREEN"))
)


mudata2 documentation built on Jan. 22, 2023, 1:48 a.m.