[R] (no subject) hi, I don't understand my error when I submit this program  > for(k in LR) { +                         donRep[[k]] <- subset(don2, Id_Essai == 1006961 & Id_Cara == 193 & Id_Rep == k , select = Val_O) +                         M[[193]] <- matrix(rep(1, 3*min(C)), nrow = min(C), ncol = 3) +                         for(k in LR) { +                                                if(length(as.numeric(as.character(donRep[[k]][,1]))) == min(C)) { + M[[193]][,k] <- as.numeric(as.character(donRep[[k]][,1])) + } +          else  M[[193]][,k] <- as.numeric(as.character(donRep[[k]][,1]))[(length(as.numeric(as.character(donRep[[k]][,1]))) - min(C) + 1):length(as.numeric(as.character(donRep[[k]][,1])))] +                                                } +                         } > if (subset(donParCara, Id_Cara == 308 , select = Ana_C) == "AV") { +                                                                                                                   print(cor(M[[308]], method = "pearson")) +                                                                                                                  } > else print(cor(M[[193]], method = "spearman")) Erreur : erreur de syntaxe dans "else" Can you help me please?        ___________________________________________________________________________ 	[[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.