A new edition of a bestselling text, this book provides a first course in programming for a broad range of students who need to work with data. Based on the open-source R statistical package, it introduces statistical graphics and numerical computing ideas such as simulation, optimization, and computational linear algebra.