point

 

 Remember me

Register  |   Lost password?


 

Flow Control, Iteration, Vectorizing (Introduction to Statistical Computing)

Wed, 04 Sep 2013 01:25:22 GMT

Lecture 3: Conditioning the calculation on the data: if; what is truth?; Boolean operators again; switch. Iteration to repeat similar calculations: for and iterating over a vector; while and conditional iteration (reducing for to while); repeat and unconditional iteration, with break to exit loops (reducing while to repeat). Avoiding iteration with "vectorized" operations and functions: the advantages of the whole-object view; some examples and techniques: mathematical operators and functions,...

, , , , ,