convt2list: convert a dataframe to a list of arguments

View source: R/convt2list.R

convt2listR Documentation

convert a dataframe to a list of arguments

Description

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

Usage

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


(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 Jan. 23, 2025, 4:03 a.m.