Join Mark Niemann-Ross for an in-depth discussion in this video Three lessons learned, part of Code Clinic: R.
- We can learn three things from working…with Lake Pend Oreille.…First of all, code needs to be resilient.…Often times, real life data will change…and we need to error trap out to make sure…that the data that we're using is actually valid.…Second, don't be surprised if a majority…of your program is error trapping in setup.…In our case, all of the mean and median data…was calculated in two lines…all the rest of our functions were just simply there…to access data and make sure that what we were accessing…was correct.…
Finally, solve problems like breaking them…into smaller steps.…Trying to do all of the code all at once…can be daunting and just so much work to do…and it's such a big problem.…Break a problem down into first, getting data.…Second, interpreting data.…Third, checking data.…And then finally, changing that into the kind of data…that you want, the statistics analysis sort of thing.…The weather data set at Lake Pend Oreille…is an excellent example of a public data set…and being able to parse through it…is a very interesting experiment in computer science.…
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.
Skill Level Intermediate
Q: R Studio tells me that it can't find files I expect to be available. Where can I find them?
A: Use the setwd() command to set the working directory to match the folder you're working in.
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S.
1. Problem One: Statistical Analysis
2. Problem Two: Image Analysis
3. Problem Three: Eight Queens
4. Accessing Peripherals
5. Recursion and Directories
Walking the directory sort code10m 56s
6. Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.