Exercise: Extract column from a data frame

Calculate the average age of passengers in the TitanicSurvival dataset from the carData package. The carData package is already loaded.

Output

Submit code to see output here.

Extract or replace columns in a data frame using \$