Matrices
In your head, list the three Cal students you like the most. Do the same for the three Cal students you like the least.
You can assign into a subsetted vector to change its contents in place.
apple banana cherry
12 4 12
01:30
[]

F. S. Sampson. A novitiate in a period of change: An experimental and case study of social relationships. PhD thesis, Cornell University. 1968.

F. S. Sampson. A novitiate in a period of change: An experimental and case study of social relationships. PhD thesis, Cornell University. 1968.

In your head, list the three Cal students you like the most. Do the same for the three Cal students you like the least.
Question: With a neighbor discuss two data structures that could store all 18 responses in one object (it need not be an atomic vector).
02:30
A two-dimensional data structure for atomic data. Created with matrix().
Note: defaults to fill the matrix by columns (byrow = FALSE)
Matrices are simply vectors with dimensions dim(). All vector behavior still applies.
02:00
Notes:
[][vec_ind] or [row,col][][vec_ind] or [row,col][][vec_ind] or [row,col]