readPhen: Read plain-text table files phen and ped

Description Usage Arguments Value

View source: R/files.lib.R

Description

The function reads the phenotype and pedigree data in SOLAR format, i.e. plain-text tables.

Usage

1
2
readPhen(phen.file, sep.phen = ",", ped.file, sep.ped = ",",
  header = TRUE, stringsAsFactors = FALSE, id.unique = TRUE, sex.optional)

Arguments

phen.file

A character, path to phen file.

sep.phen

A character, the field separator in phen file. The default value is ",".

ped.file

(optional) A character, path to ped file.

sep.ped

A character, the field separator in ped file. The default value is ",".

header

Logical, indicating whether the file contains the names of the variables as its first line. The default value is TRUE.

stringsAsFactors

logical, indicating whether character vectors to be converted to factors. The default value is FALSE.

id.unique

logical, indicating whether the IDs of individuals must be unique. The default value is TRUE.

sex.optional

logical, indicating whether the SEX field must be presented. The default value is TRUE if ped.file is specified, and it is FALSE otherwise.

Value

A data frame of phenotype data merged from two phen and ped files (merged by ID filed).


solarius documentation built on May 2, 2019, 2:43 a.m.