[R] a REALLY dumb question

S Ellison S.Ellison at LGCGroup.com
Mon Oct 6 15:36:42 CEST 2014


Duncan Murdoch said:
> environment(arima) <- environment(stats::arima)

Doh!, in a word.

That is a really useful trick; same effect as copying and fooling about with body() to get an object with the right environment, but I'd completely overlooked the fact that you can assign an environment from one object directly to another object. 

This kind of thing is exactly what makes watching R-help so worthwhile.

S Ellison



*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list