This function converts a data.frame or list of data frames (with appropriate columns and/or attributes as required for each predx class) and a vector of predx class names to a list of predx objects with (hopefully helpful) errors should any conversions fail.

to_predx(x, class)

Arguments

x

A list of data.frames.

class

A character vector of predx class names

Value

A list of predx objects with error messages for failed conversions.