Question: Use the column-binding functioncbind()to create a matrixMHwith columnsmassandheight, for the first 10 individuals. Use the functionmatrix()to create a matrixfemaleswithmassandheightvalues for female individuals. Give names to

  • Use the column-binding functioncbind()to create a matrixMHwith columnsmassandheight, for the first 10 individuals.
  • Use the functionmatrix()to create a matrixfemaleswithmassandheightvalues for female individuals.
  • Give names to the rows and columns of the matrixfemalescreated above.
  • Repeat the previous two steps to create a matrixmales.
  • Use the functionrbind()to bind the first 5 rows of bothfemalesandmales, name this objectFM.
  • Extract the last row ofFM
  • DisplayFMbut with rows in reversed order
  • DisplayFMbut now with height in 1st column, and mass in 2nd column
  • If you create a matrixMHWby combiningmass,heightandhomeworldfor all individuals, what is the resulting data type ofMHW

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!