downsample_ais: Returns null, just processes data from web

Description Usage Arguments Examples

View source: R/downsample_ais.R

Description

Returns null, just processes data from web

Usage

1
2
3
4
5
6
7
8
9
downsample_ais(
  df,
  every_minutes = 10,
  status_codes_to_keep = c(0, 7, 8, 9, 10, 11, 12, 13, 14, 15),
  SOG_threshold = 1,
  vessel_attr = c("VesselType", "Length"),
  voyage_attr = c("Destination"),
  raw = FALSE
)

Arguments

df

The data frame consisting of the combinations of zones, years, months to process

every_minutes

How often algorithm finds the closest points to (e.g. 10 minute, 30 minute, etc)

status_codes_to_keep

Status codes to retain for downsampling. List here: https://help.marinetraffic.com/hc/en-us/articles/203990998-What-is-the-significance-of-the-AIS-Navigational-Status-Values-

SOG_threshold

threshold to to delete values less than this (corresponding to little or no movement)

vessel_attr

The attributes from the vessel table to join in

voyage_attr

The attributes from the voyage table to join in

raw

If true, no filtering based on time applied. Defaults to FALSE.

Examples

1
2
3
4
5
## Not run: 
df = data.frame("month"=1:4, "year" = 2009, "zone"=10)
downsample_ais(df, raw = TRUE) # gets raw data from marine cadastre

## End(Not run)

eric-ward/getais documentation built on Sept. 22, 2020, 1:48 a.m.