R/data.R

Defines functions pmplots_data_obs pmplots_data_id pmplots_data

Documented in pmplots_data pmplots_data_id pmplots_data_obs

##' Example data sets
##'
##' @examples
##'
##' head(pmplots_data_obs())
##'
##' head(pmplots_data_id())
##'
##' @export
pmplots_data <- function() {
  loc <- system.file(package="pmplots")
  ans <- readRDS(file=file.path(loc,"exdata", "pmplots_data.RDS"))
  ans$CWRES <- ans$CWRESI
  ans
}
##' @export
##' @rdname pmplots_data
pmplots_data_id <- function() {
  loc <- system.file(package="pmplots")
  readRDS(file=file.path(loc,"exdata", "pmplots_data_id.RDS"))
}
##' @export
##' @rdname pmplots_data
pmplots_data_obs <- function() {
  loc <- system.file(package="pmplots")
  ans <- readRDS(file=file.path(loc,"exdata", "pmplots_data_obs.RDS"))
  ans$CWRES <- ans$CWRESI
  dplyr::filter(ans, !is.na(IPRED))
}
metrumresearchgroup/pmplots documentation built on Oct. 15, 2024, noon