R/subsetEEM.R

#' Subset EEM list
#' 
#' Subset EEM list
#' 
#' @param x EEM class object
#' @param i indices specifying elements to extract
#' @param ... arguments for \code{subset} function
#' 
#' @examples
#' data(applejuice)
#' selected <- applejuice[1-5]
#' 
#' @export
`[.EEM` <- function(x, i, ...) {
    r <- NextMethod("[")
    class(r) <- "EEM"
    r
}

Try the EEM package in your browser

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

EEM documentation built on May 2, 2019, 5:58 a.m.