| invisible | R Documentation |
Return a (temporarily) invisible copy of an object.
invisible(x)
x | an arbitraryR object. |
This function can be useful when it is desired to have functionsreturn values which can be assigned, but which do not print when theyare not assigned.
This is a primitive function.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)The New S Language.Wadsworth & Brooks/Cole.
withVisible,return,function.
# These functions both return their argumentf1 <- function(x) xf2 <- function(x) invisible(x)f1(1) # printsf2(1) # does not
Add the following code to your website.
For more information on customizing the embed code, readEmbedding Snippets.
