`[.enumfactor` <- function(x, ..., drop = FALSE){
y <- NextMethod("[")
attr(y, "contrasts") <- attr(x, "contrasts")
attr(y, "levels") <- attr(x, "levels")
attr(y, "indices") <- attr(x, "indices")
class(y) <- oldClass(x)
if (drop)
stop("not yet implemented")
else y
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.