checkout_hypothesis: Load one row of a dMod.frame into the .GlobalEnv

View source: R/dModFrameClass.R

checkout_hypothesisR Documentation

Load one row of a dMod.frame into the .GlobalEnv

Description

Load one row of a dMod.frame into the .GlobalEnv

Usage

checkout_hypothesis(dMod.frame, hypothesis, prefix = "", suffix = "")

Arguments

dMod.frame

A dMod.frame

hypothesis

character or numeric. specifying the name or the index of the hypothesis

prefix

Prefix appended to the object names in .GlobalEnv

suffix

Suffix appended to the object names in .GlobalEnv

Examples

testframe <- dplyr::tibble(hypothesis = c("linear", "quadratic"),
                    plots = list(plot(1:10,1:10), plot(1:10,(1:10)^2)),
                    myfun = list(function(x,a) {a * x}, function(x,a) {a * x^2}),
                    a = c(1:2))


checkout_hypothesis(testframe, "quadratic", prefix = "quad")
quadplots
quadmyfun(1:10, quada)

dkaschek/dMod documentation built on May 9, 2024, 2:07 a.m.