read.groupData: Read group label data.

Description Usage Arguments Value Examples

View source: R/readData.R

Description

Read group label data The read.groupData is function to read group label data

Usage

1
read.groupData(group.file, sep = ",", quote = "\"", header = T)

Arguments

group.file:

the file name of the group data to be read.

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

header:

a logical value indicating whether the file contains the names of the variables as its first line. If missing, the value is determined from the file format: header is set to TRUE if and only if the first row contains one fewer field than the number of columns. The default is TRUE. See read.csv.

Value

the group label vector.

Examples

1
2
3
4
5
6
## Not run: 
data(hb)
write.csv(group,file="group.csv")
group <- read.groupData(group.file = "group.csv")

## End(Not run)

matianzhou/CAMO documentation built on May 21, 2019, 10:12 a.m.