Nothing
#' Auxiliary function: modifying calls
#'
#' This function can be used to modify calls in several ways.
#' @param call Call object to be modified.
#' @param newcall New function to be called.
#' @param newargs List, new arguments and their values.
#' @param keepargs List, arguments in original call to keep, with the
#' rest being dropped.
#' @param dropargs List, arguments in original call to drop, with the
#' rest being kept.
#' @return New call object.
modcall <- function(call, newcall, newargs, keepargs, dropargs) {
if (hasArg(keepargs)) {
call_arg <- match(keepargs, names(call), 0)
call <- call[c(1, call_arg)]
}
lcall <- as.list(call)
if (hasArg(newcall)) {
lcall[[1]] <- substitute(newcall)
}
if (hasArg(dropargs)) {
for (i in dropargs) {
lcall[[i]] <- NULL
}
}
if (hasArg(newargs)) {
lcall <- c(lcall, newargs)
}
return(as.call(lcall))
}
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.