Skip to content

Commit 6eb6a7a

Browse files
committed
resolved load problem of test data
1 parent 91670ec commit 6eb6a7a

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

R/datplot_utility.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ generate.stepsize <- function(DAT_df) {
2323
#' minimum date (int/numeric) and maximum date (int/numeric).
2424
#'
2525
#' @param DAT_df a dataframe with 4 variable: ID, group, minimum date (int/num) maximum date (int/num)
26-
#' @param DAT_err a vector containing the dates in wrong order
26+
#' @param DAT_err a vector containing the indizes of the dates which are in wrong order
2727
#'
2828
#' @return corrected DAT_df
2929
#'
@@ -60,9 +60,7 @@ get.weights <- function(DAT_min, DAT_max) {
6060
}
6161
weights[,1] <- 1/weights[,1]
6262
if (any(weights[,2] == FALSE)) {
63-
warning(paste("Warning: DAT_min and DAT_max in ID ",
64-
paste(DAT_df[which(weights[,2] == FALSE),1], collapse = ", "),
65-
" (Index: ", paste(which(weights[,2] == FALSE), collapse = ", "), ")",
63+
warning(paste("Warning: DAT_min and DAT_max at Index: ", paste(which(weights[,2] == FALSE), collapse = ", "), ")",
6664
" have the same value! Is this correct? Please check the table for possible errors.", sep = ""))
6765
}
6866
return(weights)

data/DAT_df.RData

66.9 KB
Binary file not shown.

man/switch.dating.Rd

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

0 commit comments

Comments
 (0)