View source: R/getDateErrorsAndConvertDatesInPed.R
getDateErrorsAndConvertDatesInPed | R Documentation |
Date
object columnsFinds date errors in columns defined in
convertDate
as dates and converts date strings to Date
objects.
getDateErrorsAndConvertDatesInPed(sb, errorLst)
sb |
A dataframe containing a table of pedigree and demographic information. |
errorLst |
object with placeholders for error types found in a pedigree
file by |
If there are no errors that prevent the calculation of exit dates, they are calculated and added to the pedigree otherwise the pedigree is not updated.
A list with the pedigree, sb
, and the errorLst
with
invalid date rows (errorLst$invalidDateRows
)
library(nprcgenekeepr)
ped <- nprcgenekeepr::pedInvalidDates
ped
errorLst <- getEmptyErrorLst()
colNamesAndErrors <- fixColumnNames(names(ped), errorLst)
names(ped) <- colNamesAndErrors$newColNames
pedAndErrors <- getDateErrorsAndConvertDatesInPed(ped, errorLst)
pedAndErrors$sb
pedAndErrors$errorLst
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.