Today was the last Python Open Lab of the semester – congrats to all of the students who have made it this far and picked up skills in a new programming language! Over the course of the semester, we’ve been learning the basics of Python: how to initialize lists, create dictionaries, iterate through items, and define […]
Month: April 2018
Spring 2018 R Open Lab: Advanced Visualization
Apr 18 Today we will explore the advanced data visualization in R. First, we will review the basic graphic functions in R and learn how to use additional parameters to achieve different goals. Then, we will introduce the powerful package ggplot2. Here are the codes: # Quick review of basic visualization library(ggplot2) plot(diamonds$carat, diamonds$price, main […]
Spring 2018 R Open Lab: Apply Family
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 […]
Python Open Labs: April 9, 2018
We spent class today reviewing functions and how they work in Python. Students were given problem statements and were asked to write functions to return the correct output. We went over multiple problems, and I’ll step through one in this blog post today. Imagine that you are given two inputs in the form strings: Jewels […]
Python Open Lab: Week 7
Due to the complex nature of functions, on April 1, we started with a review of functions with the following problem: We then introduced classes and methods: Classes: Python is an “object-oriented programming language.” This means that almost all the code is implemented using a special construct called classes. Programmers use classes to keep related things […]
April 5th, The Art of Data Visualization
Please join us Thursday April 5th for the third annual Art of Data Visualization event in Davis Auditorium, Schapiro Center for Engineering & Physical Science Research. For full schedule and to RSVP, visit the event site. […]