This lesson is being piloted (Beta version)

Instructor

  • Instructor: Tue Vu
  • Office: 2119 Barre Hall, Clemson University
  • Office Hours: Wed 8.30-11.30 Zoom
  • Email: tuev@clemson.edu

Workshop Description

Introduction to R language for data analytics using RStudio on PC and also Jupyter notebooks on Palmetto. Workshop contents include basic understand of R, installation of additional R modules, introduction to data manipulation, introduction to visualization, and several best practices for using R. No prior knowledge of R or programming in general is required. Part 1 focuses on introduction to Data Science, R programming language with control structure; Part 2 gives more information on function, parallel programming, profiling and plotting using ggplot2 packages

Prerequisites

This workshop requires basic programming, personal computer

Course Outline

Topic

Description

Setup Preparing for the course
1. Introduction to R What is R?
2. Basic of R how to do basic arithmetics
how to initialize a variable
how to get help
3. Data Structures Class of objects in R?
Data Type in R?
How many type of number in R?
Missing values
Subsetting
4. Matrices & Data Frame Vector in R
How to define matrix in R?
How to manipulate a data frame in R?
How to read text/csv file
5. Control Structure How do I use If Else structure?
How do I use For Loop structure
How do I use While Loop structure
6. Function How to write function in R?
How can I use the function from packages
7. Looping on the command line How to apply function over the list, matrix?
8. Profiling the code How to get the computed time for a chunk of code?
How to profile the R code
9. Parallel Computing in R How to utilize multiple cores for R programming
10. R in Palmetto How to R in Palmetto
11. Basic plotting with R How to plot in R
12. Ploting with ggplot How to plot in R using ggplot2 package
13. 13.exercise
Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.