preparePhenotypeData: Prepare phenotype data

Description Usage Arguments Examples

View source: R/preparePhenotypeData.R

Description

Process parsed phenotype data sheets into a tibble suitable for random forest analysis.

Usage

1
preparePhenotypeData(phenotypeData)

Arguments

phenotypeData

parsed phenotype data collection sheet returned from readPhenotypeSheet

Examples

1
2
3
4
5
6
7
8
9
library(dplyr)

## Retrieve file paths for example data
files <- list.files(system.file('phenotypeDataCollectionSheets',
  package = 'pdi'),full.names = TRUE)

## Prepare data
d <- map(files,readPhenotypeSheet) %>%
  map(preparePhenotypeData)

pdi documentation built on Aug. 19, 2020, 9:06 a.m.