Learn R Programming

nprcgenekeepr (version 3.0.0)

makeExamplePedigreeFile: Write copy of nprcgenekeepr::examplePedigree into a file

Description

Uses examplePedigree data structure to create an example data file. Files of type "csv" and "txt" are silently overwritten if they already exist. A file of type "excel" is never overwritten; if the file already exists, an error is signaled.

Usage

makeExamplePedigreeFile(
  file = file.path(tempdir(), paste0("examplePedigree.", c(csv = "csv", txt = "txt",
    excel = "xlsx")[[fileType]])),
  fileType = "csv"
)

Value

Full path name of file saved.

Arguments

file

character vector of length one providing the file name. The default file, in the session's temporary directory, is examplePedigree.csv, examplePedigree.txt or examplePedigree.xlsx, according to fileType.

fileType

character vector of length one with possible values of "txt", "csv", or "excel". Default value is "csv".

Examples

Run this code
library(nprcgenekeepr)
pedigreeFile <- makeExamplePedigreeFile()

Run the code above in your browser using DataLab