Learn R Programming

adas.utils (version 1.0.0)

fp_write_csv: Save a design matrix to a CSV file

Description

Writes the design matrix to a CSV file, with a timestamp and comment lines.

Usage

fp_write_csv(dm, file, comment = "# ", timestamp = TRUE, type = c(1, 2), ...)

Value

Invisibly return the design matrix, unchanged, for further piping.

Arguments

dm

the design matrix.

file

the file to write the design matrix to.

comment

a comment mark to add before each line of the information.

timestamp

whether to add a timestamp to the file.

type

the CSV version (1 or 2).

...

other parameters passed to write_csv().

Details

Note that the design matrix is saved in the same order of the RunOrder column, i.e. random.