3

What is the difference? I read Hadley but this is not clear to me.
Furthermore, should I call it as envir=... or env=...? It seems it doesn't make a difference.
For examples see here and here.

Community
  • 1
  • 1
Christoph
  • 6,841
  • 4
  • 37
  • 89

1 Answers1

5

.GlobalEnv is a symbol to which the global environment is bound. globalenv is a function which returns the global environment. In practice, you can use both, although the former is faster by some nano-seconds.

Regarding your second question, study the language definition regarding argument matching, in particular, partial name matching.

Roland
  • 127,288
  • 10
  • 191
  • 288