Analyse de données avec R


TP 4 Solutions

Prof. Patrick E. Meyer

BioSys Lab - Université de Liège

Functions

  1. Euros to Belgian francs conversion:

  2. bmi <- function(weight,height) {
    weight/(height*height)
    }
    

    Watch explanation:

  3. far2cel <- function(far) {
    (far-32)*(5/9)
    }
    

    Watch explanation:

  4. distance <- function(x1,y1,x2,y2) {
    sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
    }
    

    Watch explanation:

Boucles implicites

  1. boucle implicite sur liste

  2. boucle implicite sur colonne matrice


  3. boucle implicite sur ligne matrice

Données d'expression (nombre de variables)