[R] push/pop on a stack
mschwartz at medanalytics.com
Tue Feb 25 18:43:03 CET 2003
>From: r-help-admin at stat.math.ethz.ch
>[mailto:r-help-admin at stat.math.ethz.ch] On Behalf Of David Forrest
>Sent: Tuesday, February 25, 2003 11:34 AM
>To: r-help at stat.math.ethz.ch
>Subject: [R] push/pop on a stack
>Is there a package for stacks with pushing and popping?
>I'd really like to do something like
> some stuff....
>It seems like it wouldn't be difficult, and that someone may
>have already implemented a set of stack functions, and I
>wouldn't like to duplicate it.
>Thanks for your time,
In at least that particular example, the same save/restore operation
can be achieved by:
old.pars <- par(no.readonly=TRUE)
That is in the examples in ?par.
Not sure that you need a LIFO based stack mechanism for that unless I
am missing something.
More information about the R-help