there are R function with zero args : plot.new,frame, colors. In your case make sure that you list C is present in environments that you use. Justin BEM Elève Ingénieur Statisticien Economiste BP 294 Yaoundé. Tél (00237)9597295.
----- Message d'origine ---- De : elyakhlifi mustapha <[EMAIL PROTECTED]> À : R-help@stat.math.ethz.ch Envoyé le : Mercredi, 30 Mai 2007, 8h37mn 36s Objet : [R] functions without arguments hello, I wanna know if it's possible to write functions without argument in order to understand that I write down an example f <- function(){ for (i in 1:length(C[[1]]) { print(10*C[[1]][i]) } } I know that there are errors in this syntax _____________________________________________________________________________ [[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]]
______________________________________________ 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.