[R] understanding the FUNCTION function

R. Michael Weylandt michael.weylandt at gmail.com
Thu Apr 26 19:56:25 CEST 2012


Yes, don't do it.

I know this can seem appealing if you're coming from another language,
but playing fast and loose with globals, non-local effects, and
superassignment is almost-never a good idea.

Michael

On Thu, Apr 26, 2012 at 1:32 PM, michaelyb <cel81009759 at gmail.com> wrote:
> Any solution for that type of problem?
> I did read the ?"<<-", and seems very similar to the "assign" function, if I
> am not mistaken....
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Using-FUNCTION-to-create-usable-objects-tp4588681p4590445.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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.



More information about the R-help mailing list