Description Usage Arguments See Also Examples
View source: R/init_experiments.R
init_experiments
generates a dataframe with the proper row and
column headers for user manipulation before calling sci_figure
1 2 3 4 | init_experiments(nexp = 3, exp_names = paste0("Exp", 1:nexp),
stage_names = c("population", "question", "hypothesis",
"experimental_design", "experimenter", "data", "analysis_plan",
"analyst", "code", "estimate", "claim"))
|
nexp |
The number of scientific experiments to be represented in the data frame, i.e. number of columns. |
exp_names |
The names of each experiment, i.e. column names. Default: "Exp1, Exp2, ..." |
stage_names |
The names of each step in the process, i.e. row names. Defaults match Patil et. al. |
1 2 3 4 5 6 7 8 9 | # Generate the default data frame of three experiments
init_experiments()
init_experiments(nexp = 5,
exp_names = c("Run_16_01", "Run_16_04", "Run_16_07",
"Run_16_09", "Run_16_12"))
testthat::expect_error({
init_experiments(nexp = 2, exp_names = names)
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.