Making choices choices with functions (solution)

Exercise
Output solution
Rows: 157 Columns: 15
── Column specification ────────────────────────────────────────────────────────
Delimiter: "\t"
chr  (5): SITE, TREATMENT, PLOT, HEIGHT, ANT
dbl (10): SURVEY, YEAR, BLOCK, ID, AXIS1, AXIS2, CIRC, FLOWERS, BUDS, FRUITS

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
  species    r2
1      CM 0.866
  species    r2 significance
1      CM 0.866            S
  species    r2 significance
1      CS 0.437           NS
  species    r2 significance
1      TP 0.701            S