Learn R Programming

sfd (version 0.1.0)

update_values: Update the Values of a Design

Description

For a set of values, this function inserts the actual values of the design produced by get_design().

Usage

update_values(design, values)

Value

An updated tibble.

Arguments

design

A tibble produced by get_design(). The column values should be unmodified.

values

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.

Examples

Run this code
des <- get_design(3, 6)
des

vals <- list(1:6, letters[1:6], seq(20, 21, length.out = 6))

des_2 <- update_values(des, vals)
des_2

Run the code above in your browser using DataLab