**Data and Analysis with R, for Fun (and Maybe Work!)**, and kindly contributed to R-bloggers)

Apart from going longer than I had anticipated, very little of any significance went wrong during my R session at UofT on friday! It took a while at the beginning for everyone to get set up. Everyone was connecting to my home RStudio server via UofTâ€™s wireless network. This meant that if any students werenâ€™t set up to use wireless in the first place (they get a username and password from the library, a UTORid) then they wouldnâ€™t be able to connect period. For those students who were able to connect, I assigned each of them one of 30 usernames that I had laboriously set up on my machine the night before.

After connecting to my server, I then got them to click on the â€˜dataâ€™ directory that I had set up in each of their home folders on my computer to load up the data that I prepared for them (see last post). I forgot that they needed to set the data directory as their working directoryâ€¦ woops, that wasted some time! After I realized that mistake, things went more smoothly.

We went over data import, data indexing (although I forgot about conditional indexing, which I use very often at workâ€¦ dâ€™oh!), merging, mathematical operations, some simple graphing (a histogram, scatterplot, and scatterplot matrix), summary stats, median splits, grouped summary stats using the awesome dplyr, and then nicer graphing using the qplot function from ggplot2.

I was really worried about being boring, but I found myself getting more and more energized as the session went on, and I think the students were interested as well! Iâ€™m so glad that the RStudio Server I set up on my computer was able to handle all of those connections at once and that my TekSavvy internet connection didnâ€™t crap out either This is definitely an experience that I would like to have again. Hurray!

Hereâ€™s a script of the analysis I went through:

Hereâ€™s the data:

**leave a comment**for the author, please follow the link and comment on their blog:

**Data and Analysis with R, for Fun (and Maybe Work!)**.

R-bloggers.com offers

**daily e-mail updates**about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...