This is a followup to Size Estimates by Name.
Download and import data on dinosaur lengths with species names.
Write a function mass_from_length() that uses the equation mass <- a * length^b to estimate the size of a dinosaur from its length.
This function should take two arguments, length and species. For each of the following inputs for species, use the given values of a and b for the calculation:
Stegosauria: a = 10.95 and b = 2.64 (Seebacher 2001).Theropoda: a = 0.73 and b = 3.63 (Seebacher 2001).Sauropoda: a = 214.44 and b = 1.46 (Seebacher 2001).species: a = 25.37 and b = 2.49.head.head.species using dplyr.