c(women)
## $height
## [1] 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
##
## $weight
## [1] 115 117 120 123 126 129 132 135 139 142 146 150 154 159 164
c(as.matrix(women))
## [1] 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 115 117 120 123
## [20] 126 129 132 135 139 142 146 150 154 159 164
R has a wide variety of data types including scalars, vectors (numerical, character, logical), matrices, data frames, and lists. c() presents data with type“vector” while c(as.matrix) presents data as matrix with two dimension