[R] nameless functions in R

Bjørn-Helge Mevik bhx2 at mevik.net
Wed Dec 3 20:27:00 CET 2003


Rajarshi Guha <rxg218 at psu.edu> writes:

> apply(x, c(2), funtion(v1,v2){ identical(v1,v2) }, v2=c(1,4,2))
>
> The above gives me a syntax error. I also tried:

No wonder!  Try with `function' instead of `funtion'.

-- 
Bjørn-Helge Mevik




More information about the R-help mailing list