gfw.summarize {fishRman} | R Documentation |
Summarize GFW data on fishing effort
Description
Wrapper function for 'dplyr::summarise()' that summarizes GFW data into the most important measures of central tendency for fishing_hours and hours, creating a new dataframe. It will have one (or more) rows for each combination of grouping variables; if there are no grouping variables, the output will have a single row summarising all observations in the input.
Usage
gfw.summarize(df)
Arguments
df |
A dataframe object as downloaded from GFW's Google Big Data Query. |
Value
A dataframe.
See Also
[dplyr::summarise()] [dplyr::group_by()]
Examples
dated <- c("2020-01-01", "2020-01-02")
lat <- c(40, 41)
lon <- c(12,13)
mmsi <- c("34534555", "25634555")
hours <- c(0, 5)
fishing_hours <- c(1,9)
df <- data.frame(dated, lat, lon, mmsi, hours, fishing_hours)
summary <- gfw.summarize(df)
print(summary)
[Package fishRman version 1.2.3 Index]