check_pedigree_datatypes: Checking Datatypes of Columns of a Pedigree

Description Usage Arguments Details Value Examples

View source: R/check_pedigree_datatypes.R

Description

The datatypes given in pl_dtype$dtp are compared to the actual datatypes in the pedigree for the columns given in pl_dtype$col. If the datatypes do not match, then the records causing the problems are returned in the result list as a tibble.

Usage

1
2
3
4
5
6
7
8
check_pedigree_datatypes(
  ps_pedig_path,
  ps_delim = "|",
  ps_id_col = "#IDTier",
  pl_dtype = NULL,
  pcol_types = NULL,
  ptbl_pedigree = NULL
)

Arguments

ps_pedig_path

path to the pedigree input file

ps_delim

column delimiting character

ps_id_col

column title for animal IDs

pl_dtype

list of column names with required data-types

pcol_types

column types of pedigree in ps_pedig_path used by read_prp_pedigree

ptbl_pedigree

tibble containing pedigree information

Details

The format of the argument pl_dtype can be determined from the result of the function get_pedigree_datatypes().

Value

list with datatype problems

Examples

1
2
3
4
5
6
## Not run: 
check_pedigree_datatypes(ps_pedig_path = system.file('extdata',
    'PopReport_SN_ohne_20210115.csv_adaptfin2.csv',
  package = 'qprppedigree'))

## End(Not run)

pvrqualitasag/qprppedigree documentation built on March 18, 2021, 7:34 a.m.