maggiore.2 | R Documentation |
Trova il maggiore tra due numeri. Funzione di esempio per le strutture condizionali.
maggiore.2( a, b )
a , b |
valori numerici |
Restituisce il valore maggiore tra i due inseriti.
Massimiliano Pastore
maggiore.2(21,3)
## not run
## maggiore.2(21,3,5) # errore, ci sono tre numeri
## The function is currently defined as
function(a,b)
{
if (a==b) stop("numeri uguali")
if (a>b) {
return(a)
} else {
return(b)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.