Remember you have to use the library() function every time you start a new R session in order to load the package you want to use.
Here are a few additional questions from Carlyn using the data.table package. These aren't part of the assignment, just some extra practice in case you're feeling like you really want some more programming in your life. (And who doesn't?)
Remember you have to use the library() function every time you start a new R session in order to load the package you want to use.
16 Comments
Here is the script file for Assignment 2, which is due on March 11th. The challenge questions are (I think) especially tough this time around, so have fun with them! There's a question from Carlyn about data.table, so I've reattached the trees .csv file for you to use.
I've attached my approach to answering the questions from Assignment 1. It's in a script file and should run if you want to see the results. There are always many ways to approach the same problem in R (which makes it both flexible and difficult to learn), so if you found a way that works for you then that's great!
Here's the script file that we'll be going over next class. We'll go a bit deeper into how to read and write files to your computer directly from R, and we'll get a teaser about plotting. Please download both the script file and the data files and save them to the same folder on your computer.
Here is the script file and the data file for Carlyn Perovich's lecture on packages and data.table.
Here is the script file that we'll go over on Tuesday. I took what we had left from Lecture 3 and copied it over, so we'll just start from this one. We'll talk about how to deal with NAs in your data, and start looking at some more advanced data summaries.
Remember that Assignment 1 is due this Tuesday (2 days from now). You can just email it to me to turn in (sorry if I made you print it out already!). I should have another assignment with subsetting practice to post before class. Here is the script file for next Tuesday. We'll be finishing the notes from last class on accessing data and then moving on to basic data summaries and subsetting.
Remember that the due date for the first assignment was pushed back to February 11th. |
About the Course
The course is aimed to introduce students to the R language in an interactive way. In-class participatory lectures and assignments will be posted here. Categories
All
Archives |