Extracting vectors from data frames (dplyr)
Using the Portal data surveys
table:
- Use
$
to extract theweight
column into a vector - Use
[]
to extract themonth
column into a vector - Extract the
hindfoot_length
column into a vector and calculate the mean hindfoot length ignoring null values.