Learn R Programming

adas.utils (version 1.0.0)

fp_read_csv: Load a design matrix from a CSV file

Description

Load from a CSV file the design matrix that has previously been saved with fp_write_csv(). It is an error if the loaded data frame has different dimensions or column names than the original design matrix.

Usage

fp_read_csv(dm, file, type = c(1, 2), yield = "Y", comment = "#")

Value

the design matrix with the new values.

Arguments

dm

the design matrix.

file

the file to read the design matrix from.

type

the CSV version (1 or 2).

yield

the yield column name.

comment

the comment mark.

Details

Note that the design matrix is sorted by the StdOrder column after loading.

See Also

fp_write_csv()