update_values.RdFor a set of values, this function inserts the actual values of the design
produced by get_design().
update_values(design, values)A tibble produced by get_design(). The column values should
be unmodified.
A list of vectors containing the possible values for each
parameter. There should be as many values (of any type) as there are rows in
design. For numeric data, it is preferable that the values are equally
spaced.
An updated tibble.
des <- get_design(3, 6)
des
#> # A tibble: 6 × 3
#> X1 X2 X3
#> <dbl> <dbl> <dbl>
#> 1 1 2 5
#> 2 2 6 3
#> 3 3 3 1
#> 4 4 4 6
#> 5 5 1 4
#> 6 6 5 2
vals <- list(1:6, letters[1:6], seq(20, 21, length.out = 6))
des_2 <- update_values(des, vals)
des_2
#> # A tibble: 6 × 3
#> X1 X2 X3
#> <int> <chr> <dbl>
#> 1 1 b 20.8
#> 2 2 f 20.4
#> 3 3 c 20
#> 4 4 d 21
#> 5 5 a 20.6
#> 6 6 e 20.2