search for: schwartzian

Displaying 1 result from an estimated 1 matches for "schwartzian".

2012 Jan 04
3
[newbie] stack operations, or functions with side effects (or both)
...one code functions with side effects in R? details: I have been a coder for years, mostly using C-like semantics (e.g., Java). I am now trying to become a scientist, and to use R, but I don't yet have the sense of "good R" and R idiom (i.e., expressions that are to R what (e.g.) the Schwartzian transform is to Perl). I have a data-assimilation problem for which I see a solution that wants a stack--or, really, just a pop(...) such that * s <- c(1:5) * print(s) [1] 1 2 3 4 5 * pop(s) [1] 1 * print(s) [1] 2 3 4 5 but in fact I get > pop(s) Error: could not find function "pop&q...