read_phenotype: Read phenotype from .fam file

Description Usage Arguments Value

View source: R/read_phenotype.R

Description

Reading phenotype data from file. It is assumed, that data is given in .fam file. In this format, first column is family id (FID), second is individual id (IID), third is Paternal individual ID (PAT), fourth is Maternal individual ID (MAT), fifth is SEX and sixth and last is PHENOTYPE. If file has only four columns, then it is assumed that PAT and MAT columns are missing. If there is only one column, then it is assumed that only phenotype is provided.

Usage

1
2
read_phenotype(filename, sep = " ", header = FALSE,
  stringAsFactors = FALSE)

Arguments

filename

character, name of file with phenotype

sep

character, field seperator in file

header

logical, does first row of file contain variables names

stringAsFactors

logical, should character vectors be converted to factors?

Value

object of class phenotypeData


geneSLOPE documentation built on May 30, 2017, 1:22 a.m.