Mustapha,

donC is not a function if it is a list write donC[[i]] or donC[i] for indexing
 
Justin BEM
Elève Ingénieur Statisticien Economiste
BP 294 Yaoundé.
Tél (00237)9597295.



----- Message d'origine ----
De : elyakhlifi mustapha <elyakhlifi_mustapha@yahoo.fr>
À : R-help@stat.math.ethz.ch
Envoyé le : Mardi, 24 Avril 2007, 10h48mn 48s
Objet : [R] (no subject)


I wanna display some data which there are subsets of a dataframe called "don" but there are errors like this

> L=as.numeric(levels(factor(don$Id_Cara)))
> for(i in L){
+ donC(i)=subset(don, Id_Cara == i, select = c( Id_TrT1, Id_Geno, Id_Rep, Val_O))
+ donC(i)
+ }
Erreur dans donC(i) = subset(don, Id_Cara == i, select = c(Id_TrT1, Id_Geno,  : 
        impossible de trouver la fonction "donC<-"

I understand that the problem comes from the third line 

it doesn't reconize "donC(i)" but  it's very important to make one "boucle" (in french) on the L's elements.

to tell more about L :

> L
[1] 103 137 138 177 193 308


      
___________________________________________________________________________





    [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


      ____________________________________________________________________________________________

ls.. et vos réactions !

	[[alternative HTML version deleted]]

