Nothing
#' @method [ lfactor
#' @export
"[.lfactor" <- function(x,i, ..., drop=FALSE) {
xo <- x
class(xo) <- "factor"
if(!missing(i)) {
res <- xo[i,...,drop=FALSE]
} else {
res <- xo[...,drop=FALSE]
}
attr(res,"llevels") <- llevels(x)
class(res) <- c("lfactor", "factor")
if(drop) {
res <- droplevels(res)
}
res
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.