Description Usage Arguments Details Value Examples
View source: R/check_pedigree_datatypes.R
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.
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
)
|
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 |
The format of the argument pl_dtype can be determined from the result of the function get_pedigree_datatypes().
list with datatype problems
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.