R Bar Week #1: The Basics

Tom Curran
10/2 - 10/6

What is R?

  • R is a language built for statistics

  • A kind of happy medium between stata and python

    • One end of the scale is python = lots of engineering purposes and/or data science
    • The other end of the scale is stata = traditional statistics and economic tool
  • What you need to do

Basic Operations

Addition: +

2 + 2
[1] 4

Subtraction: -

5 - 2
[1] 3

Multiplication: *

1 * 4
[1] 4

Try it on your own!

Basic Operations continued

Division: /

25 / 5
[1] 5

Exponentiation: ^

5^2
[1] 25

Modulo: %%

#Modulo
4 %% 2
[1] 0

Slide With Plot

plot of chunk unnamed-chunk-5