An R Package for Ecotaxa & Ecopart Processing. UVP User Workshop 2022

ver 1.2.0.9000


ecopart_obj class structure:

ecopart_obj class structure:

Code Considerations:
|>lapply()
Project management:
Project management:

Project management:

Project management:

Project management:

Summary & Analysis
Summary & Analysis

Summary & Analysis

Summary & Analysis

Summary & Analysis

Summary & Analysis

Summary & Analysis

Start with an ecopart_obj
rel_data <- ecopart_example |>
mod_zoo(func = names_drop, drop_names = 'not-living', drop_children = T) |>
add_zoo(func = names_to,
new_names = c('Copepoda', 'Eumalacostraca','Chaetognatha', 'Rhizaria',
'Crustacea','Trichodesmium', 'living'),
suppress_print = T) |>
merge_casts(name_map = list(all_casts = ecopart_example$meta$profileid)) |>rel_data <- ecopart_example |>
mod_zoo(func = names_drop, drop_names = 'not-living', drop_children = T) |>
add_zoo(func = names_to,
new_names = c('Copepoda', 'Eumalacostraca','Chaetognatha', 'Rhizaria',
'Crustacea','Trichodesmium', 'living'),
suppress_print = T) |>
merge_casts(name_map = list(all_casts = ecopart_example$meta$profileid)) |>
rel_taxa()rel_data <- ecopart_example |>
mod_zoo(func = names_drop, drop_names = 'not-living', drop_children = T) |>
add_zoo(func = names_to, col_name = 'name',
new_names = c('Copepoda', 'Eumalacostraca','Chaetognatha', 'Rhizaria',
'Crustacea','Trichodesmium', 'living'),
suppress_print = T) |>
merge_casts(name_map = list(all_casts = ecopart_example$meta$profileid)) |>
rel_taxa()| taxa | rel_abundance |
|---|---|
| Rhizaria | 0.3544304 |
| Copepoda | 0.2516754 |
| Trichodesmium | 0.1999255 |
| living | 0.1124348 |
| Chaetognatha | 0.0282949 |
| Eumalacostraca | 0.0279226 |
| Crustacea | 0.0253165 |

integrated_rhiz <- ecopart_example |>
mod_zoo(names_keep, keep_names = 'Rhizaria', keep_children = T) |>
add_zoo(names_to, col_name = 'name',
new_names = c('Phaeodaria','Foraminifera','Acantharea','Rhizaria','Collodaria'),
suppress_print = T) |>
add_zoo(biovolume, col_name = 'biovol', shape = "sphere", pixel_mm = 0.92) |>integrated_rhiz <- ecopart_example |>
mod_zoo(names_keep, keep_names = 'Rhizaria', keep_children = T) |>
add_zoo(names_to, col_name = 'name',
new_names = c('Phaeodaria','Foraminifera','Acantharea','Rhizaria','Collodaria'),
suppress_print = T) |>
add_zoo(biovolume, col_name = 'biovol', shape = "sphere", pixel_mm = 0.92) |>
uvp_zoo_conc(cast_name = c('bats361_ctd1', 'bats361_ctd3', 'bats361_ctd5',
'bats361_ctd2', 'bats361_ctd4', 'bats361_ctd6'),
func_col = 'biovol', func = sum,
breaks = seq(0,1200,25)) |>integrated_rhiz <- ecopart_example |>
mod_zoo(names_keep, keep_names = 'Rhizaria', keep_children = T) |>
add_zoo(names_to, col_name = 'name',
new_names = c('Phaeodaria','Foraminifera','Acantharea','Rhizaria','Collodaria'),
suppress_print = T) |>
add_zoo(biovolume, col_name = 'biovol', shape = "sphere", pixel_mm = 0.92) |>
uvp_zoo_conc(cast_name = c('bats361_ctd1', 'bats361_ctd3', 'bats361_ctd5',
'bats361_ctd2', 'bats361_ctd4', 'bats361_ctd6'),
func_col = 'biovol', func = sum,
breaks = seq(0,1200,25)) |>
average_casts(name_map = list(
station_A = c('bats361_ctd1, bats361_ctd3', 'bats361_ctd5'),
station_B = c('bats361_ctd2', 'bats361_ctd4', 'bats361_ctd6'))) |>integrated_rhiz <- ecopart_example |>
mod_zoo(names_keep, keep_names = 'Rhizaria', keep_children = T) |>
add_zoo(names_to, col_name = 'name',
new_names = c('Phaeodaria','Foraminifera','Acantharea','Rhizaria','Collodaria'),
suppress_print = T) |>
add_zoo(biovolume, col_name = 'biovol', shape = "sphere", pixel_mm = 0.92) |>
uvp_zoo_conc(cast_name = c('bats361_ctd1', 'bats361_ctd3', 'bats361_ctd5',
'bats361_ctd2', 'bats361_ctd4', 'bats361_ctd6'),
func_col = 'biovol', func = sum,
breaks = seq(0,1200,25)) |>
average_casts(name_map = list(
station_A = c('bats361_ctd1, bats361_ctd3', 'bats361_ctd5'),
station_B = c('bats361_ctd2', 'bats361_ctd4', 'bats361_ctd6'))) |>
lapply(integrate_all, need_format = T, subdivisions=1000L) |>
lapply(intg_to_tib)integrated_rhiz <- ecopart_example |>
mod_zoo(names_keep, keep_names = 'Rhizaria', keep_children = T) |>
add_zoo(names_to, col_name = 'name',
new_names = c('Phaeodaria','Foraminifera','Acantharea','Rhizaria','Collodaria'),
suppress_print = T) |>
add_zoo(biovolume, col_name = 'biovol', shape = "sphere", pixel_mm = 0.92) |>
uvp_zoo_conc(cast_name = c('bats361_ctd1', 'bats361_ctd3', 'bats361_ctd5',
'bats361_ctd2', 'bats361_ctd4', 'bats361_ctd6'),
func_col = 'biovol', func = sum,
breaks = seq(0,1200,25)) |>
average_casts(name_map = list(
station_A = c('bats361_ctd1, bats361_ctd3', 'bats361_ctd5'),
station_B = c('bats361_ctd2', 'bats361_ctd4', 'bats361_ctd6'))) |>
lapply(integrate_all, need_format = T, subdivisions=1000L) |>
lapply(intg_to_tib)| taxa | intg | station |
|---|---|---|
| Collodaria | 1499653.99 | station_A |
| Foraminifera | 21861.95 | station_A |
| Phaeodaria | 101105.74 | station_A |
| Acantharea | 0.00 | station_A |
| Rhizaria | 0.00 | station_A |
| Acantharea | 95261.69 | station_B |
| Collodaria | 1278423.93 | station_B |
| Foraminifera | 21019.25 | station_B |
| Phaeodaria | 719243.76 | station_B |
| Rhizaria | 93708.84 | station_B |



