Description Usage Arguments Value Note Examples
Generates a signature object for a function.
1 | sig(fn, name_override)
|
fn |
A function. |
name_override |
Override the default function name. See examples. |
A list, with the elements
nameThe name of the function.
argsThe arguments of the function.
Anonymous functions are given the name "..anonymous..".
Nonstandard names ("foo bar"), assignment fns ("foo<-"), operators (" in backquotes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
R.Version <- function()
scan <- function(file = "", what = double(), nmax = -1, n = -1, sep = "", quote
= if (identical(sep, "\n")) "" else "'\"", dec = ".", skip = 0, nlines = 0,
na.strings = "NA", flush = FALSE, fill = FALSE, strip.white = FALSE, quiet
= FALSE, blank.lines.skip = TRUE, multi.line = TRUE, comment.char = "",
allowEscapes = FALSE, fileEncoding = "", encoding = "unknown", text,
skipNul = FALSE)
..anonymous.. <- function(x, y)
sum <- function(..., na.rm = FALSE)
$mean
`X[[i]]` <- function(x, ...)
$var
`X[[i]]` <- function(x, y = NULL, na.rm = FALSE, use)
$mean
mean <- function(x, ...)
$var
var <- function(x, y = NULL, na.rm = FALSE, use)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.