convt2list: convert a dataframe to a list of arguments

Description Usage Arguments Value Examples

View source: R/convt2list.R

Description

convert each row of a dataframe to a list of arguments.

Usage

1
convt2list(dat,keep_par_names = FALSE)

Arguments

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

Value

The function returns a list of lists containing the argiuments to be tested on.

Examples

1
2
3
(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))

oonyambu/stats_102A documentation built on July 21, 2020, 7:28 a.m.