R function str()
The str() function reveals the structure used to store a data object.
It returns output such as 'data.frame" with details about number of "observations" (cases or instances), variables, "Factors"(labels of groups), "levels" (count of factors), mode(type of data).
str(myFamily) 'data.frame': 5 obs. of 4 variables: $ myFamilyNames : Factor w/ 5 levels "Bro","Dad","Dog",..: 2 4 5 1 3 $ myFamilyAges : num 43 42 12 8 5 $ myFamilyGenders: Factor w/ 2 levels "Female","Male": 2 1 1 2 1 $ myFamilyWeights: num 188 136 83 61 44
Jen, also, I seem to be missing the concepts of data frames and vectors.
I guess the easiest way to think of it is an vector is like an array : {1, 2, 3, 4, 5, 6 ,7} and a data frame is like a matrix of rows and columns.
