[R] on lexical scoping....
@k@h@y_e4 @end|ng |rom hotm@||@com
Tue Apr 4 16:36:15 CEST 2023
THanks a lot. I will take a look at those...
AKSHAY M KULKARNI
From: Bert Gunter <bgunter.4567 using gmail.com>
Sent: Tuesday, April 4, 2023 7:48 PM
To: akshay kulkarni <akshay_e4 using hotmail.com>
Cc: R help Mailing list <r-help using r-project.org>
Subject: Re: [R] on lexical scoping....
?search and ?environment
See also "The R Language Definition" manual for similar such questions.
On Tue, Apr 4, 2023 at 6:56 AM akshay kulkarni <akshay_e4 using hotmail.com> wrote:
> Dear Members,
> I have the following code typed at the console prompt:
> y <- x*10
> X has not been defined and the above code throws an object not found error. That is, the global environment does not contain x. Why doesn't it look further in the environment stack, like that of packages? There are thousands of packages that contain the variable named x. Of course, that happens if the above code is in a function (or does it?).
> What concept of R is at work in this dichotomy?
> THanking you,
> Yours sincerely,
> AKSHAY M KULKARNI
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help