R/preprocessingPheno_steps.R
combineTimepointsPreprocessingPheno.RdCombine selected timepoints that were already aligned by
splitTimepointsPreprocessingPheno() into the wide phenotype-plus-beta
objects used by downstream longitudinal models.
combineTimepointsPreprocessingPheno(
timepointData,
combineTimepoints = "1,2",
verbose = FALSE,
logs = FALSE,
log_dir = NULL,
log_file = "log_combineTimepointsPreprocessingPheno.txt"
)Object returned by splitTimepointsPreprocessingPheno().
Character vector or comma-separated string of timepoints to combine.
Logical. If TRUE, emit progress messages with message().
Logical. If TRUE, write the same messages to a log file.
Character or NULL. Directory used for the log file when
logs = TRUE.
Character. File name used when logs = TRUE.
A list with class "dnaEPICO_preprocessingPheno_combined"
containing the combined phenotype table, merged phenotype-plus-beta table,
selected timepoints, and output suffix.
ex <- dnaEPICO:::examplePreprocessingPhenoStateDnaEpico()
combined_data <- combineTimepointsPreprocessingPheno(
timepointData = ex$timepointData,
combineTimepoints = "1,2",
verbose = FALSE,
logs = FALSE
)
combined_data$suffix
#> [1] "T1T2"