R/as.pfile.R

Defines functions as.pfile

Documented in as.pfile

as.pfile <- function(x) {

  if(!is.data.frame(x) | length(dim(x)) != 2)
    stop("'x' must be a data frame with dim(x) = 2")

  varcheck(x, c("entry", "measure"))

  class(x) <- c("pfile", "data.frame")

  return(x)
}

Try the Rwinsteps package in your browser

Any scripts or data that you put into this service are public.

Rwinsteps documentation built on May 2, 2019, 1:08 p.m.