Skip to content

Commit 79cdfaf

Browse files
prep for update
1 parent 676e6a6 commit 79cdfaf

7 files changed

Lines changed: 95 additions & 168 deletions

File tree

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export(readWikifamilytree)
3939
export(readgedcom)
4040
export(recodeSex)
4141
export(related_coef)
42+
export(repairIDs)
4243
export(repairSex)
4344
export(resample)
4445
export(simulatePedigree)

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# BGmisc 1.4.1
2+
## In Progress
23
* replaced print with message in all functions
4+
* Exposed several internal functions to the user
35

46
# BGmisc 1.4.0
57
* revived checkParents function to check for handling phantom parents and missing parents

R/checkIDs.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ checkIDs <- function(ped, verbose = FALSE, repair = FALSE) {
8989
#' This function repairs missing IDs in a pedigree.
9090
#' @inheritParams checkIDs
9191
#' @return A corrected pedigree
92+
#' @export
9293
repairIDs <- function(ped, verbose = FALSE) {
9394
checkIDs(ped = ped, verbose = verbose, repair = TRUE)
9495
}

R/cleanPedigree.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#' @param verbose A logical indicating whether to print progress messages.
1010
#' @return A dataframe with standardized column names.
1111
#'
12-
#' @keywords internal
1312
standardizeColnames <- function(df, verbose = FALSE) {
1413
# Internal mapping of standardized names to possible variants
1514
mapping <- list(
@@ -25,7 +24,7 @@ standardizeColnames <- function(df, verbose = FALSE) {
2524
"sex" = "^(?:sex|gender|female|m(?:a(?:le|n)|en)|wom[ae]n)"
2625
)
2726
if (verbose) {
28-
print("Standardizing column names...")
27+
message("Standardizing column names...")
2928
}
3029
lowered_colnames <- tolower(colnames(df))
3130
for (standard_name in names(mapping)) {

R/helpPedigree.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ determineSex <- function(idGen, sexR, code_male = "M", code_female = "F") {
6363
#' @param df_Ngen The dataframe for the current generation, including columns for individual IDs and spouse IDs.
6464
#' @return The input dataframe augmented with a 'coupleId' column, where each mated pair has a unique identifier.
6565
#' @export
66+
#'
6667
assignCoupleIDs <- function(df_Ngen) {
6768
df_Ngen$coupleId <- NA_character_ # Initialize the coupleId column with NAs
6869
usedCoupleIds <- character() # Initialize an empty character vector to track used IDs

man/standardizeColnames.Rd

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/partial.html

Lines changed: 89 additions & 165 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)