Skip to contents

Get all columns that depend on a parameter

Usage

get.parameter.deps(x, recursive = FALSE)

Arguments

x

The parameter name (as a character string)

recursive

Search backward to the inputs x is calculated from, rather than forward to the parameters calculated from x. See the details.

Value

With recursive = FALSE (default), a character vector of parameter names that depend on the parameter x; empty if none do. With recursive = TRUE, the unique set of everything x is calculated from, following each dependency to the end.

Details

The two directions answer different questions. The default answers "what becomes invalid if x changes?". recursive = TRUE answers "what does x need?", and its result mixes parameter names with the raw inputs the calculation ends at, such as "conc", "time", "dose", and "time.dose".