Skip to content

Commit

Permalink
Get lower case $TIME
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Sep 21, 2022
1 parent e33a99f commit d314762
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/vpcPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ vpcPlot <- function(fit, data = NULL, n = 300, bins = "jenks",
.obs <- as.data.frame(fit)
.obs$idv <- .obs[[idv]]
.w <- which(tolower(names(.obs)) == idv)
.obs$TIME <- .obs[, .w]
.time <- .obs[, .w]
.obs <- .obs[, -.w]
.obs$TIME <- .time
return(vpc::vpc_cens(sim=.sim,
obs=.obs,
bins=bins, n_bins=n_bins, bin_mid=bin_mid,
Expand Down

0 comments on commit d314762

Please sign in to comment.