Description Usage Arguments Value Examples
View source: R/process_ais_data.R
Processes raw AIS data, creates cleaned data frame of hourly observations with speed calculations
1 | process_ais_data(aisdata, min_from_hr = 7.5, time_zone = "GMT")
|
aisdata |
The data frame consisting of the combinations of zones, years, months to process |
min_from_hr |
Window around the top of the hour used. Every vessel might not have a position recorded at exactly 12:00 for example, so the closest position +/- minutes_from_hour is used. Defaults to 7.5 (15 min window) |
time_zone |
The time zone used in calculations (e.g. "GMT", "UTC") |
processed data frame
1 2 3 4 5 6 7 8 | ## Not run:
df = data.frame("month"=1:4, "year" = 2009, "zone"=10)
downsample_ais(df, raw = TRUE) # gets raw data from marine cadastre
d = readRDS("filtered/Zone10_01_2009.rds")
d_processed = process_ais_data(d, time_zone = "UTC")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.