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 theweightcolumn into a vector - Use
[]to extract themonthcolumn into a vector - Extract the
hindfoot_lengthcolumn into a vector usingpull()and use this vector to calculate the mean hindfoot length ignoring null values