Reads a csv file and returns a matrix in which the rows corresponds to features (e.g. markers, genes, phenotypes...) and the columns correspond to samples/observations.
Arguments
- file
Character, path to the dataset csv file.
- col_id
Character, the name of the column in the file that contains the ID of the rows (i.e. feature IDs if
features_as_rowsisTRUE, or sample IDs iffeatures_as_rowsisFALSE).- features_as_rows
Logical, do the rows in the file correspond to features? Default value is
TRUE, i.e. the file contains features as rows and samples as columns.- ...
Further arguments passed to
readr::read_csv().
