[R] functions without arguments

From: elyakhlifi mustapha <elyakhlifi_mustapha_at_yahoo.fr>
Date: Wed, 30 May 2007 07:37:36 +0000 (GMT)


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_at_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. Received on Wed 30 May 2007 - 07:49:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 30 May 2007 - 10:31:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.