revise: Change or add named elements of a list

View source: R/revise.R

reviseR Documentation

Change or add named elements of a list

Description

Primary use case is for revising a list of specifications as originally created by specs()

Usage

revise(specs, ..., delete)

Arguments

specs

a list of specifications to revise

...

named values to replace in or add to specs

delete

a vector of names of elements to remove from the specs list

Examples

sp <- specs(mm_name('bayes'))
sp <- revise(sp,
  model_name='b_np_oipi_tr_plrckm_mynewmodel.stan',
  params_in=c(params_in,'my_new_param'), my_new_param=4)

USGS-R/streamMetabolizer documentation built on Aug. 15, 2023, 7:50 a.m.