2015
Lynda
Mark Niemann-Ross
2:30
English
Successful programmers know more than a computer language. They also know how to think about solving problems. They use "computational thinking": breaking a problem down into segments that lend themselves to technical solutions. Code Clinic is a series of ten courses where lynda.com authors solve the same problems using different programming languages. Here, Mark Niemann-Ross works with R.
Mark introduces challenges and then provides an overview of his solutions in R. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Introduction
Welcome
What you should know before watching this course
Using the exercise files
Using RStudio
The R programming language
Debugging with browser()
Finding libraries for use with R
1. Problem One: Statistical Analysis
Introducing Lake Pend Oreille
Overview of my solution
Changes at Lake Pend Oreille
Walking the unit tests
Walking getpendoreille_factored.R
Using colons to define a range of numbers
Finishing getpendoreille_factored.R
Understanding the LakePendOreilleData class
Walking the code of a failed attempt
Three lessons learned
2. Problem Two: Image Analysis
Introducing the problem of image analysis
Overview of my solution
The many ways that didn't work
Showing successful cross-correlation
A cross-correlation with a lag of 2
Applying CCF to images
Running a unit test
Exploring funcwrapper
Exploring isthisacroppedversionofthat.R
Stepping across the image
Watching an animation of the process
More on image processing
3. Problem Three: Eight Queens
A classic computer science problem
Overview of my solution
A matrix of possibilities
Brute force: Dealing with rows
Understanding countUnique.R
Brute force: Dealing with diagonals
Further information about eight queens
Visualizing the solution
4. Accessing Peripherals
Build a musical instrument using mouse movements NEW
Overview of my solution NEW
Testing mouse access NEW
Testing sound generation NEW
Putting mouse and sound together NEW
Download File Size:463.93 MB