What is R?
Statistical programming language for doing statistical analysis
Derived from the S language
Developed by John Chambers at Bell Labs
What are the 5 Basic atomic classes of R
Character Numeric Integer Complex Logical
How are numbers stored?
as Double Precision Real Numbers - if you want an int you need to specify the L suffix
how do you store variables?
What are vectors?
essentially arrays
what does a colon do?
A range of numbers,
1:5 would generate
1, 2, 3, 4, 5
How do you generate a sequence?
seq(from, to, by)
How do you repeat numbers
rep(vector, repetitions)
How do you evaluate vectors
any() and all()
how do you sample?
after setting the seed:
sample(vector, size of sample)