More R-Project Learning!

Really good site to learn R-Project:
http://www.datacamp.com/

Useful command – to tell the datatype of a variable:
class(variable_name)

Creating a vector. Use the “Combine” function (c):
variable_name=c(value1, value2, value3)

Create and name vectors:

poker_vector = c(140, -50, 20, -120, 240)
names(poker_vector) = c(“Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”)

or name using another vector

days_vector = c(“Monday”,”Tuesday”,”Wednesday”,”Thursday”,”Friday”)
names(poker_vector) = days_vector