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

Three-Toed Sloth 2013-09-04

Summary:

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, ifelse; generating arrays with repetitive structure.

Introduction to Statistical Computing

Link:

http://bactra.org/weblog/1040.html

From feeds:

Statistics and Visualization ยป Three-Toed Sloth

Tags:

Date tagged:

09/04/2013, 04:04

Date published:

09/04/2013, 04:04