Learn R Programming

mudata2 (version 1.1.3)

rbind.mudata: 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 mudata
rbind(..., validate = TRUE)

Value

A mudata object

Arguments

...

mudata objects to combine

validate

Flag to validate the final object using validate_mudata.

Examples

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

Run the code above in your browser using DataLab