[R] push/pop on a stack

2003-02-25 Thread David Forrest
Is there a package for stacks with pushing and popping? I'd really like to do something like push(par(no.readonly=TRUE)) some stuff par(pop()) 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

RE: [R] push/pop on a stack

2003-02-25 Thread Marc Schwartz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Forrest Sent: Tuesday, February 25, 2003 11:34 AM To: [EMAIL PROTECTED] 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

Re: [R] push/pop on a stack

2003-02-25 Thread Barry Rowlingson
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. Here's a Tuesday evening lash-up. Usage is: mystack - stack() # initialisation push(mystack,value) # stores something on the stack

RE: [R] push/pop on a stack

2003-02-25 Thread Marc Schwartz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barry Rowlingson Sent: Tuesday, February 25, 2003 12:10 PM To: David Forrest Cc: [EMAIL PROTECTED] Subject: Re: [R] push/pop on a stack It seems like it wouldn't be difficult, and that someone may have