Basic data management review (solution)

Exercise
Output solution

Attaching package: 'dplyr'
The following objects are masked from 'package:stats':

    filter, lag
The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union
Rows: 10 Columns: 3
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (2): id, dnaseq
dbl (1): earlength

ℹ 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.
# A tibble: 2 × 2
  earlengthcat `mean(gccontent)`
  <chr>                    <dbl>
1 large                     58.5
2 small                     42.5

Alternative solution to create output using a loop

Alternative solution to create output using apply’s