Message-ID: <48BC5A98.1050708@stats.uwo.ca>
Date: 2008-09-01T21:11:52Z
From: Duncan Murdoch
Subject: email just sent
In-Reply-To: <50d1c22d0809011144t3c416cc1k890e92d11d5bbb58@mail.gmail.com>
ivo welch wrote:
> please ignore part 1. of course, the cat works. my mistake. I just
> need to learn how to step up frames, please.
>
parent.frame() will give you the frame of the caller. For example, in
the browser,
caller <- parent.frame()
ls(caller)
caller$foo
etc. parent.frame() has an arg specifying how far up the stack you want
to go. There's also the browser() command "where" which shows you the
calling stack, to tell you what to pass to parent.frame.
Duncan Murdoch
> regards,
>
> /iaw
>
> ______________________________________________
> 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.
>