mass_from_length_theropoda()
function from Part 1 of Exercise 1 called mass_from_length_max()
.
length
passed to the function is less than 20.length
is greater than 20, return NA
instead.sapply()
and this new function to estimate the mass for the theropoda_lengths
data from Exercise 1.