not.fun =
function(x) {
return(!x)
}
not.fun.alt =
function(x) {
if (!x)
return(1L)
return(100)
}
not.fun(3)
not.fun(TRUE)
not.fun(as.matrix(3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.