Salut à tous!
J'ai 2 fonctions à regrouper en une seule mais je n'arrive pas à trouver comment faire...
Voici mes 2 fonctions :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 imc=rep(0,100) imc = sapply(1:100, function(i){ poids=rnorm(10,60,5) taille=rnorm(10,170,5) imc=poids/((taille/100)*(taille/100)) })par avance!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 fdr=rep(0,100) fdr = sapply(1:100, function(i){ sucre=rbinom(10,1,0.2) sel=rbinom(10,1,0.3) fdr=sucre+sel })
Partager