Learn R Programming

nprcgenekeepr (version 1.0.5)

hasGenotype: Check for genotype data in dataframe

Description

Checks to ensure the content and structure are appropriate for genotype data are in the dataframe and ready for the geneDrop function by already being mapped to integers and placed in columns named first and second. These checks are simply based on expected columns and legal domains.

Usage

hasGenotype(genotype)

Arguments

genotype

dataframe with genotype data

Value

A logical value representing whether or not the data.frame passed in contains genotypic data that can be used. Non-standard column names are accepted for this assessment.

Examples

Run this code
# NOT RUN {
library(nprcgenekeepr)
rhesusPedigree <- nprcgenekeepr::rhesusPedigree
rhesusGenotypes <- nprcgenekeepr::rhesusGenotypes
pedWithGenotypes <- addGenotype(ped = rhesusPedigree,
                               genotype = rhesusGenotypes)
hasGenotype(pedWithGenotypes)
# }

Run the code above in your browser using DataLab