Learn R Programming

mrgsolve (version 0.8.9)

valid_data: Validate and prepare data sets for simulation.

Description

Validate and prepare data sets for simulation.

Validate and prepare idata data sets for simulation.

Usage

valid_data_set(x, ...)

# S3 method for default valid_data_set(x, ...)

# S3 method for data.frame valid_data_set(x, m = NULL, verbose = FALSE, quiet = FALSE, ...)

valid_idata_set(x, verbose = FALSE, quiet = FALSE, ...)

# S3 method for matrix valid_data_set(x, verbose = FALSE, ...)

Arguments

x

data.frame or matrix

...

additional arguments

m

a model object

verbose

logical

quiet

if TRUE, messages will be suppressed

Value

a matrix with non-numeric columns dropped; if x is a data.frame with character cmt column comprised of valid compartment names and m is a model object, the cmt column will be converted to the corresponding compartment number.

A numeric matrix with class valid_idata_set.

See Also

idata_set, data_set, valid_data_set