Wayne's Github Page

A place to learn about statistics

Applied Statistical Computing - Lec 2

Basic calculator operations

1 + 2

Order of operations

1 + 2 * 3

Assigning variables

three <- 3

Why use variables - trapezoid rule




Difference between “=” and “<-“



Vectors - how we represent data


A quick way to create consecutive integers

-3:5

2 Properties of vectors



Editing a vector - the square bracket



Calculator functions

log(10)

Default values in functions



Getting help on a function



Functions on vectors



Exercise - calculate average of coin tosses