View source: R/ecopart_merge_casts.R
merge_casts | R Documentation |
This function takes in a list of casts and will combine them based on a list of possible names to combine
merge_casts(cast_list, name_map)
cast_list |
either a list of dataframes or an ecopart_obj |
name_map |
a list with cast names to combine - names of list items will be new names |
Alex Barth
#merging casts based on station:
name_map = list(
'gf' = ecopart_example$meta$profileid[which(ecopart_example$meta$stationid == 'gf')],
'other' = ecopart_example$meta$profileid[which(ecopart_example$meta$stationid != 'gf')]
)
merged_obj <- ecopart_example |> merge_casts(name_map = name_map)
# now there's only two aggregate casts:
names(merged_obj$par_files)
names(merged_obj$zoo_files)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.