# Méthode générique
triple <- function(x, ...) {
UseMethod("triple")
}
triple.integer <- function(x, ...) {
return(x * 3L)
}
triple.numeric <- function(x, ...) {
return(x * 3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.