programme avec R

programme avec R - Divers - Programmation

Marsh Posté le 11-10-2008 à 22:30:41    

bonjour,
 
j'ai du mal a comprendre le programme ci dessous ecrit en R...est ce que quelqu'un pourrait me l'expliquer?? pourriez vous aussi me renseigner sur le sapply. Je ne comprends pas vraiment de quel manière il est utilisé ici.je vous remercie d'avance.
 
ind = function(x,a)
{
if (x<=0|x>1) stop ("x n'est pas dans ]0,1]" )
sum(x-a>0)+1
}
find = function(x,a)
{
sapply(x,ind,a)
}
 

Reply

Marsh Posté le 11-10-2008 à 22:30:41   

Reply

Marsh Posté le 12-10-2008 à 00:51:23    

http://www.ats.ucla.edu/stat/R/lib [...] htm#sapply


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed