Learn R Programming

nprcgenekeepr (version 3.0.0)

getGenotypes: Get genotypes from file

Description

Get genotypes from file

Usage

getGenotypes(fileName, sep = ",")

Value

The file's contents as an unchecked dataframe (column names are not changed). In a delimited text file an empty string and "NA" are read as NA. Pass the result to checkGenotypeFile

to make it compatible with the other functions in this package.

Arguments

fileName

character vector of length one: the path of a delimited text file or an Excel (xls/xlsx) file.

sep

column separator in a delimited text file; ignored for an Excel file.

Examples

Run this code
library(nprcgenekeepr)
pedCsv <- getGenotypes(fileName = system.file("testdata", "qcPed.csv",
  package = "nprcgenekeepr"
))

Run the code above in your browser using DataLab