subset_emulators: Subsetting for Bimodal/Variance Emulators

subset_emulatorsR Documentation

Subsetting for Bimodal/Variance Emulators

Description

Takes a collection of bimodal or stochastic emulators and subsets by output name.

Usage

subset_emulators(emulators, output_names)

Arguments

emulators

A set of emulators, often in nested form

output_names

The names of the desired outputs

Details

It can be useful to consider only a subset of outputs. In the normal case, this can be easily achieved; however, when the emulators are in a nested structure such as that provided by emulator_from_data with emulator_type = 'variance' or 'bimodal', it can be more involved. This function allows the easy selecting of emulators by name, returning a subset of them in the same form as the original object.

This function is compatible with ‘standard’ emulators; that is, those in a simple list, equivalent to subsetting over the collection of output names of the emulators that exist in output_names.

Value

An object of the same form as 'emulators'.


hmer documentation built on June 22, 2024, 9:22 a.m.