Exercises
- Does the length of the characters change the length of the vector?
e.g. is the length the same between
c('a', 'b')andc('about', 'baseball') - Type out
lettersin R, notice how this variable is pre-defined. - Create a vector that has the first 21 letters in the alphabet and
assign this to a variable
alpha21. - Create a random vector of length 6 where each element contains the outcome
from a fair dice roll. Then name each element
"rollX"whereXis replaced with the index for that element