Homework

Submit a single file homework6.Rmd for all questions.

  1. Basic Linux command and operation. Perform following operations (all using Linux command in the Linux shell), answer questions and provide Linux commands used for these operations.

  2. More advanced Linux command and operation. Perform following operations (all using Linux command in the Linux shell), answer questions and provide Linux commands used for these operations.

  3. Read in the COVID-19 data, provide R codes and results for the following questions:

  4. Here is a set of homework for the R programming class at Emory University. Do the questions as much as you can.


Day 1: Linux system and basic commands

Linux is cool. The oft-used commands in Linux shell or Terminal are fundamental skills to have for data scientists. Once you get used to it and know it well, you’ll find this command-line driven operation is much more efficient and convenient than the operation in a point-click graphical interface.

Today, we will learn some basic linux operation and commands.


Day 2: More advanced Linux commands

Today we will learn some more advanced Linux commands, including Linux piping and redirection, and regular expression.


Day 3: Miscellaneous R functions, R base graphics

Today we will first learn some R functions useful for the analysis of COVID-19 data.

Next, we will do a systematic and comprehensive review of the R base graphics functionalities, even though you have learned and used some of them before. Read the following two lecture notes. They are for a Master’s level R programming class at Emory. If you understand all these, congratulation, because you are as good as a Biostatistics MS student.

Do homework question 3.


Day 4 & 5: R graphics: ggplot2

We learned R base graphics yesterday. A new R graphics system, ggplot2, is more advanced and powerful. For today and tomorrow, we’ll learn ggplot2. Below is, again, the lecture notes for the Master’s level R programming class at Emory. Read the slides and play with the codes. Skip the contents for maps (ggmap, the last 20 or so pages). Some of the content can be difficult. Do what you can.

Do homework question 4. This is a real homework set for the R programming class. Talk to me if some of the questions are difficult.