read_phenotype_file: Read a phenotype file as a data frame

Description Usage Arguments Details Value Examples

View source: R/fileIO.R

Description

Read a phenotype file as a data frame for the selected columns along with 'FID', 'IID', 'population', and 'split' columns

Usage

1
read_phenotype_file(phenotype_file_path, columns)

Arguments

phenotype_file_path

A path to the phenotype file

columns

a list of columns to read

Details

We recode -9 as NA in population, split, age, and sex columns

Value

data frame containing phenotype data

Examples

1
2
3
4
5
6
## Not run: 
read_phenotype_file(phenotype_file_path, 'INI50')
read_phenotype_file(phenotype_file_path, c('INI50', 'HC382'))
read_phenotype_file(phenotype_file_path, c('age', 'sex', 'INI50', 'HC382'))

## End(Not run)

rivas-lab/snpnet documentation built on Dec. 14, 2021, 3:22 a.m.