Apr 11 The topic of this week is the apply family in R. Recall that we learned loops as one of the basic concepts at the very beginning; you can review it from the Starter Kit and the Lab featuring More Fundamentals. Although loop is conceptually simple and intuitive, it is inefficient. The apply family […]
Tag: R Open Lab
Spring 2018 R Open Lab: Exploratory Data Analysis
Mar 28 This week ‘s topic is Exploratory Data Analysis in R. The goal of the lab is to give attendants some ideas about what they can learn when they first have a data set in their hands and the corresponding approaches. The lab started with introduction of data frame’s concept and how to create […]
Spring 2018 R Open Lab: Character Strings
Feb 28 For this week, the topic we discussed is character strings in R. This lab’s content is a steppingstone for text analysis. We started with introducing the concept of characters, character strings, and character string vectors in R. Then, we talked about operations on strings such as getting substring and combining different character strings. […]
Spring 2018 R Open Lab: More Fundamentals
Last week, we walked through the R starter kit which introduced most of the useful basic concepts in R such as vectors, matrices, and loops. This week, we continued to talk about more basics in R and demonstrated examples. The goal of this lab is to get attendants a better understanding of how R language […]
R Open Lab Materials
For better reproducibility and accessibility, I created a GitHub repository (https://github.com/yuejin123/ROpenLab) to put the instruction materials I used for all the R Open Lab session in the past academic year. Again, thank you to all who came to the R Open Lab. ☀️Enjoy the summer!☀️ […]
R Open Lab – Merge and Filter Data
During the first 20-30 minutes of yesterday’s open lab, we talked about how to merge datasets and filter data using base R and dplyr package. The rest of the open lab were free discussions between participants and instructors. Thank you to all who showed up! Welcome to explore the materials I used for the open lab: https://drive.google.com/open?id=0B4uO8w_uGtsCWjRId0p6QllKZlE Enjoy the spring! […]
R Open Lab – ggplot
Data visualization is an integral part of data exploration and presentation. Yesterday, we talked about ggplot2, a package which provides a mature and consistent system for plotting in R. We explored the advantage and disadvantages of ggplot2, the syntax and usage of the package. As always, thank you to everyone who showed up. Materials I […]
R Open Labs – Apply Family
This Wednesday we talked about apply function family in base R. We covered apply(), tapply(), lapply(), sapply() and vapply(). We also briefly introduced the concept of factors in R. As always, thank you to all who showed up! Next two weeks’ R Open Lab will be cancelled due to midterm week and spring break. Good […]
R Open Labs – readr Package
Today we introduced readr package. It is a package used for reading csv/xls/txt etc. data. It is designed to flexibly parse many types of data found in the wild, while still cleanly failing when data unexpectedly changes. We covered the functionality of the package and the difference between this package and base R. Next week we will talk […]
R Open Labs – Linear Regression
Thank you to all who showed up last week! Last Wednesday we went over doing linear regression in R, including: how to fit and interpret linear models, evaluate model validity and select among competing models. See you this Wednesday from 10 am – 12 pm at DSSC (Lehman Social Science Library Room 215)! Materials I […]