R/read_prcalc.R

Defines functions read_prcalc

Documented in read_prcalc

#' @rdname as_prcalc
#'
#' @export
read_prcalc <- function(x,
                        l1,
                        l2   = NULL,
                        p,
                        q    = NULL,
                        type = c("nested", "span"),
                        ...) {

  result <- NULL

  type <- match.arg(type)

  temp_df <- read.csv(x)

  result <- as_prcalc(temp_df,
                      l1 = l1,
                      l2 = l2,
                      p  = p,
                      q  = q,
                      type = type)


  result
}
JaehyunSong/PRcalc documentation built on April 17, 2024, 1:23 p.m.