Exercise: Determine number of elements in data frame

Output
                              survived    sex age passengerClass
Allen, Miss. Elisabeth Walton      yes female  29            1st
 [ reached 'max' / getOption("max.print") -- omitted 1308 rows ]

Determine the number of data values in the TitanicSurvival data frame above given as the number of rows multiplied by the number of columns.

Output

Submit code to see output here.

Determine the size of a data frame