Loops vectorized genus extraction.qmd (solution)

Exercise
Output solution

1

[1] "cygnus" "aix"    "anas"  

2

      species  genus
1 cygnus olor cygnus
2  aix sponsa    aix
3  anas acuta   anas