# Comments! # you just need the pound sign (not a hashtag! :-) ) before each line # in R, comments will not be run but will show up in the console window # data entry with the c() function: var1 <- c(5,10) var2<-c(2,5) var3=c(3,2) # since we are using the assignment operator (<- or=), we have to call that object # after it is run in order to view it # if we want to see what we input, we have to call the object we created (3 variables here) Var1 # note that I capitalized the V in var1. Var1 with a capital v does not exist. # R is case sensitive! var1 var2 var3 # notice that the answers are given in a list with a [1] before it # the [1] denotes that the results are a vector (list) # not that pretty to look at (we will work on that soon!) # this one is better # use rbind() or cbind() to bind the rows or columns together to # make the output look a bit nicer at the moment rbind(var1,var2,var3) # or cbind(var1,var2,var3)