aggregator | R Documentation |
This function takes a dataframe with coordinates, and facilitates aggregating the data for specific (user-specified) fields. It outputs a gridded version of the original data. Any numeric field can be aggregated, and aggregate values can be one or more of SUMs, MEANs and/or COUNTs
aggregator(
df = NULL,
lat.field = "LATITUDE",
lon.field = "LONGITUDE",
agg.fields = NULL,
agg.minutes = 5,
facet.field = NULL,
calculate = c("COUNT", "SUM", "MEAN")
)
df |
a dataframe to be analyzed. |
lat.field |
the default is |
lon.field |
the default is |
agg.fields |
the default is |
agg.minutes |
the default is |
facet.field |
default is |
calculate |
the default is |
a data frame
Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca
Other general_use:
DDMMSS_to_DD()
,
DDMMx_to_DD()
,
clip_by_poly()
,
combine_lists()
,
df_qc_spatial()
,
df_sf_to_gpkg()
,
df_to_sf()
,
drop_cols()
,
prepare_shape_fields()
,
subset_by_time()
,
updateCheck()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.