Re: [R] basic q re: parsing functions, declaration order

2015-04-20 Thread J Robertson-Burns
On 18/04/2015 18:14, Gowder, Paul wrote: Hi there, So I’m doing some serious coding in R for the first time—writing a strategic simulation to run for a few (or many) thousand iterations,* and doing so in proper functional programming form, [...] write.table(results, file="simul_results.

Re: [R] basic q re: parsing functions, declaration order

2015-04-18 Thread Bert Gunter
1. You should read a suitable R tutorial before proceeding. Is it not advisable to learn a language's syntax before attempting to program in it? An Intro to R ships with R, but there are many others available on the Web. Choose that which suits. You may also wish to look at the R Language manual; s

Re: [R] basic q re: parsing functions, declaration order

2015-04-18 Thread Jeff Newmiller
You will eventually learn that scope in R is rather different than any of those other languages. However, if you don't think too hard about it, you should find it quite natural. So yes, you can call "forward" if you like to think of it that way. However, your reference to a mess of functions do

[R] basic q re: parsing functions, declaration order

2015-04-18 Thread Gowder, Paul
Hi there, So I’m doing some serious coding in R for the first time—writing a strategic simulation to run for a few (or many) thousand iterations,* and doing so in proper functional programming form, i.e., with a bunch of wrapper functions calling other wrapper functions calling the stuff that