sma_derive_files: Apply R code to derive new variables.

View source: R/simanalyse-derive.R

sma_derive_filesR Documentation

Apply R code to derive new variables.

Description

Apply R code to derive new variables.

Usage

sma_derive_files(
  code,
  monitor = ".*",
  values = list(),
  path = ".",
  folder = "analysis0000001",
  progress = FALSE,
  options = furrr::furrr_options()
)

Arguments

code

A string of R code to derive posterior samples for new parameters. E.g. "var = sigma^2".

monitor

A character vector (or regular expression if a string) specifying the names of the variables in object and/or code to monitor. By default all variables are included.

values

A named list of additional R objects to evaluate in the R expression.

path

A string. Analyses results are read from that path on disk.

folder

A string for the name of the folder that contains the analysis.

progress

A flag specifying whether to print a progress bar.

options

The future specific options to use with the workers.

Value

An object of the same class as object


audrey-b/simanalyse documentation built on May 20, 2022, 7:45 p.m.