Day 1 January 11, 2021

R Environment

Course Mechanics:

  1. Content – definitions, syntax, details, etc.
  2. Concept – how does it work, why?, figuring out “easter eggs”
  3. Try it out – practice
  4. Homework – check understanding
  5. Quizzes – check understanding

Grades: 25% Participation, 25% Quizzes, 50% Homework

CONTENT:

Letʻs talk

  1. Why Do I have to learn R syntax, language, etc.?
  2. By the end of the class, you should be able to: 1) Write your own code. 2) Figure out whatʻs wrong (debug errors). 3) Have the skills to figure out other code (depending on whether it makes sense!), 4) Read and begin make use of help pages – opening up a huge universe of possibilities 5) Have the skills to use any package
  3. Checking that itʻs not all crap. Code checks. Does it work as expected? What are you expecting to get?  
  4. Writing clean scripts
  5. Reproducibility. Documentation. Archiving input data, code, all steps of analysis. Can you reproduce your results exactly after 6 months? 6 years?

From Introduction to R:

R Environment 

R Objects – Vector, Matrix, Array, Data frame, List, Function

Conceptual Podcasts:

https://youtu.be/wzPRpyoNaa8

https://youtu.be/DDInqjxUnS4

Install R on your computer. Instructions are provided on this helpful website: http://people.tamu.edu/~dcarlson/quant/GettingR.pdf

PC users, please install Notepad++ and NppToR This is a text editor with two key functionalities that will be VERY HELPFUL – (1) some contextual highlighting, and (2) ability to send code snippets to R, and will get very close to the Mac default editor

Assignment:

  1. Watch Podcasts
  2. Read Introduction to R: Chapters 1-3, Finish working through Appendix A
  3. Practice: Write a simple script

Class Podcast:

https://wp.me/p9BUma-aR