Description Usage Arguments Examples
View source: R/create_gadget_infile.R
This utility function will save batch evaluated design criterion (DC) responses to seed the design_experiment function.
1 | create_gadget_infile(lhs_design, response, filename)
|
lhs_design |
design matrix of DC evaluations |
response |
vector of DC responses |
filename |
save design to this file |
1 2 3 4 5 6 7 | #produces an Rdata file containing previous runs of the design criterion
set.seed(123)
lhs_design <- lhs::maximinLHS(10,1)
criterion_response <- (lhs_design - 1)^2
file <- paste(tempdir(),"/gadget_infile.Rdata", sep="")
create_gadget_infile(lhs_design,criterion_response, filename = file)
message(sprintf("gadget_infile.Rdata saved to directory %s",tempdir()))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.