dplyr

Extracting vectors from data frames


Using the Portal data surveys table:

  1. Use $ to extract the weight column into a vector
  2. Use [] to extract the month column into a vector
  3. Extract the hindfoot_length column into a vector and calculate the mean hindfoot length ignoring null values.
[click here for output]