Usage
read.pheno(file.format = c("cape", "csv"), filename = NULL,
pheno.col = NULL, id.col = 1, delim = ",", na.strings = "-")
Arguments
file.format
A character string indicating which of the accepted formats describes the file to be read in. See Details for specifics.
filename
An optional character string with path name specifying the file to be read in. Omission of this argument will prompt a dialog box for selecting a file.
pheno.col
An optional numeric vector specifying which columns the phenotypes of interest are in. If omitted, all phenotypes are read in.
id.col
An integer indicating in which column the individual IDs are stored.
delim
A character string indicating the delimeter in the data file. The default indicates a comma-separated file (",").
na.strings
The symbol used to denote missing data in the file. Misspecifying this character can lead to errors in processing the file in which cape misstakenly thinks some phenotypes have character values in them.