Learn R Programming

pdi (version 0.4.2)

preparePhenotypeData: Prepare phenotype data

Description

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

Usage

preparePhenotypeData(phenotypeData)

Arguments

phenotypeData

parsed phenotype data collection sheet returned from readPhenotypeSheet

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab