Nothing
#' Create S3 methods
#'
#' Helper function to create S3 method that preserves (most)
# attributes (including class).
#'
#' @param generic,object arguments passed to \code{\link{NextMethod}}
#'
#' @keywords internal
#'
#' @return
#' Function with arguments "x", "i", and "...".
#' The "i" argument can be thought of as "index" if the method defined is
#' for example the "["-function.
create_s3_method <- function(generic = NULL, object = NULL){
function(x, i, ...) {
r <- NextMethod(generic = generic, object = object)
mostattributes(r) <- attributes(x)
r
}
}
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.