General course and R introduction handout (Acrobat (PDF) 116kB Jan8 20)
R Tutorial Videos
Legos: Boxes or bags with assorted Legos (~10 Legos is a good amount), pencils and paper
Buckethead/Immersion: Several small buckets (large enough for the average human head) or blindfolds, immersion suits (or other interactive objects for students to try and assemble/disassemble)
Ice Bucket: Several 7-gallon buckets with 5-6 gallons of seawater (~32 PSU), electric or manual hand drill and ½ inch bits, meter stick (or dowel rod marked along its length), refractometers, plastic pipettes, thermometers, rubber bands, pencils and paper, safety goggles
Students engaging in the Buckethead/Immersion activity.
Provenance: Victoria Simons, University of Delaware
Reuse: If you wish to use this item outside this site in ways that exceed fair use (see http://fairuse.stanford.edu/) you must seek permission from its creator.
The first activity (Legos) uses colored, interlocking bricks to have students build something, write down instructions, and have a classmate attempt to follow those instructions. This highlights the need to give clear commands (to a computer).
The second activity (Buckethead/Immersion) has students lose access to sight via placing a bucket on their head or by blindfolding them, and other students must lead them through a task while acting as the blind student's eyes. This also highlights the need to give clear commands (to a computer).
The third activity (Ice Bucket) is intended to demonstrate properties of sea water while providing students an opportunity to collect and plot data. The Ice Bucket activity requires decent prior planning to ensure that all the buckets of sea water have frozen sufficiently, so care needs to be taken to prepare them well in advance.
Students participating in the Ice Bucket exercise.
Provenance: Victoria Simons, University of Delaware
Reuse: If you wish to use this item outside this site in ways that exceed fair use (see http://fairuse.stanford.edu/) you must seek permission from its creator.
A hole needs to be drilled into each bucket's ice, and while students should be able to do this themselves, the instructor should use their judgement on whether the students are mature enough to handle the power drill or if the instructor should do it for them. Students may also share buckets. The instructor should make sure to walk among the groups and aid with drilling and data collection as needed. Once the temperature and salinity data has been collected, students should be prepared to plot their data after watching the R tutorial videos.
Regardless of whether any of the three activities are used, the core of this module is to introduce students to R with instructional videos and accompanying code. There are five videos that accompany this module with an accompanying R code file for each, however students can also generate their own code as they follow along. Either the videos can be watched in class or assigned as homework. After watching the videos and following along, students should feel confident enough to plot data in R. If the Ice Bucket activity was performed, the students should now plot the data they collected.
The amount of time this module takes will vary greatly depending on how many activities are included. Each activity should take about an hour, but they can be shortened to fit multiple in one class session. Depending on how well the class performs, the R-coding time in class can easily be shortened or extended to ensure understanding.
The activities, mainly Legos and Buckethead, can seem a bit silly, which can make students enjoy them but may make them take the activities less seriously.
Students will often underestimate themselves when it comes to coding in R. It seems a daunting task, however the videos walk students along to show them everything they need to do. As a result, students often believe that they are struggling, when they are performing very well. They may need additional encouragement and reinforcement that they are doing well.
Students working in R.
Provenance: Victoria Simons, University of Delaware
Reuse: If you wish to use this item outside this site in ways that exceed fair use (see http://fairuse.stanford.edu/) you must seek permission from its creator.
Collecting the students' coding at the end allows formative assessment of how well they followed the videos. For the Legos activity, the students' instructions can be collected and evaluated. For the Ice Bucket activity, students' graphs and code can be collected and assessed. The concepts learned here will be applied to the rest of the course, and thus assessed further in the following modules.
R Core Team. 2017. R: A language and environment for statistical computing. Vienna, Austria. URL https://www.R-project.org/
Williams, L., R.R. Kessler, W. Cunningham, R. Jeffries. 2000. Strengthening the case for pair programming. Software IEEE 17:19-25.
R code files (for instructor reference only)
-
R as a calculator
This file is only accessible to verified educators. If you are a teacher or faculty member and would like access to this file please enter your email address to be verified as belonging to an educator.
-
R and vectors
This file is only accessible to verified educators. If you are a teacher or faculty member and would like access to this file please enter your email address to be verified as belonging to an educator.
-
R and matrices
This file is only accessible to verified educators. If you are a teacher or faculty member and would like access to this file please enter your email address to be verified as belonging to an educator.
-
Plotting in R
This file is only accessible to verified educators. If you are a teacher or faculty member and would like access to this file please enter your email address to be verified as belonging to an educator.