# Addition
10 + 3[1] 13
# Subtraction
10 - 3[1] 7
# Multiplication
10 * 3[1] 30
# Division
10 / 3[1] 3.333333
Spring 2026 | Data 2 (399)
Jeffrey M. Girard | Lecture 02a
Install R and RStudio on your laptop computer
Learn to use the R Console as a scientific calculator
Programming is how we talk to and control our amazing computers
It gives us power and flexibility
Everything we do in this course will be accomplished via programming
Programming will leave a record of what we did (i.e., code), so we can later reuse, adapt, and share it

R is like a well-meaning but overly literal genie
Mastering the R language means learning…
Error in parse(text = input): <text>:2:4: unexpected symbol
1: # Only use * for multiplication
2: 10 x
^
Error in parse(text = input): <text>:2:2: unexpected ','
1: # Don't include commas inside numbers
2: 9,
^