Basic Data Types and Data Structures (Introduction to Statistical Computing)

August 28, 2012
By

(This article was originally published at Three-Toed Sloth , and syndicated at StatsBlogs.)

Introduction to the course: statistical programming for autonomy, honesty, and clarity of thought. The functional programming idea: write code by building functions to transform input data into desired outputs. Basic data types: Booleans, integers, characters, floating-point numbers. Subtleties of floating point numbers. Operators as basic functions. Variables and names. An example with resource allocation. Related pieces of data are bundled into larger objects called data structures. Most basic data structures: vectors. Some vector manipulations. Functions of vectors. Naming of vectors. Continuing the resource-allocation example. Building more complicated data structures on top of vectors. Arrays as a first vector structure.

Slides

Introduction to Statistical Computing



Please comment on the article here: Three-Toed Sloth

Subscribe

Email:

Add to Google Reader or Homepage

  Subscribe