ReadClinical: Title Read Clinical File

Description Usage Arguments Value Examples

View source: R/read.expr.R

Description

Title Read Clinical File

Usage

1
ReadClinical(file.name, sep = ",", quote = "\"")

Arguments

file.name

path to clinical file

sep

the field separator character. Values on each line of the file are separated by this character. If sep = "", the separator is 'white space', that is one or more spaces, tabs, newlines or carriage returns. The default is ,. See read.csv.

quote

the set of quoting characters. To disable quoting altogether, use quote = "". See scan for the behaviour on quotes embedded in quotes. Quoting is only considered for columns read as character, which is all of them unless colClasses is specified. The default is \". See read.csv.

Value

a data.frame of clinical data

Examples

1
2
3
4
5
6
7
data(study.eg)
data(preproc.option)
write.csv(study.eg@datasets[[1]], file="expr.csv")
write.csv(study.eg@clinicals[[1]], file="clinical.csv")
study <- ReadExpr(file.name="expr.csv", name="test", dtype=DTYPE.microarray)
clinical <- ReadClinical(file.name="clinical.csv")
study <- setClinical(study, list(clinical))

metaOmics/preproc documentation built on May 29, 2019, 4:43 a.m.