R/subset.R

Defines functions subset.visreg

Documented in subset.visreg

subset.visreg <- function(x, sub, ...) {
  x$fit <- x$fit[eval(match.call()$sub, x$fit),]
  x$res <- x$res[eval(match.call()$sub, x$res),]
  x
}

Try the visreg package in your browser

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

visreg documentation built on July 1, 2020, 10:24 p.m.