Extracting vectors from data frames (dplyr)
Using the Portal data surveys
table (download a copy if it’s not in your working directory):
- 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.