Learn R Programming

Mega2R (version 1.1.0)

mkphenotype: generate a phenotype data frame

Description

Convert data in phenotype_table to a data frame of columns that are phenotypes. The columns may be affection status or quantitative values

Usage

mkphenotype(envir)

Value

is a data frame with FID column, then IID column, and then an additional column for each phenotype.

Arguments

envir

"environment" containing SQLite database and other globals

Examples

Run this code
db = system.file("exdata", "seqsimm.db", package="Mega2R")
ENV = read.Mega2DB(db)
out = mkphenotype()

out

Run the code above in your browser using DataLab