Search notes:

R function: example

help usually shows an example of how to use the described function. With example, R can be instructed to run this example.
example(mean)
# mean> x <- c(0:10, 50)
# 
# mean> xm <- mean(x)
# 
# mean> c(xm, mean(x, trim = 0.10))
# [1] 8.75 5.50
Github repository about-r, path: /functions/example.R

See also

Getting help in R
Index to (some) R functions

Index