convt2list | R Documentation |
convert each row of a dataframe to a list of arguments.
convt2list(dat,keep_par_names = FALSE)
dat |
A dataframe that contains the test cases, where each row is one test case. |
keep_par_names |
A logical parameter that is used to determine whether the parameter names in the test data and the functions are the same. Default is FALSE |
The function returns a list of lists containing the argiuments to be tested on.
(mult_data <- data.frame(x = c(10,-3,2),y = c(20,2,-3),z = c(30,1,2)))
(convt2list(mult_data))
(convt2list(mult_data, TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.