Learn R Programming

dafishr (version 1.0.1)

model_vms: Vessel Modeling with Gaussian Mixture Models

Description

This function uses normalmixEM from the mixtools package to model speed of vessels and estimates their behavior. Specifically, if the vessel was in a fishing activity or cruising

Usage

model_vms(df)

Value

a data.frame with a vessel_state column with the type of model implemented

Arguments

df

a data.frame preprocessed using the preprocessing_vms() function from this package

Examples

Run this code
# \donttest{
preprocessing_vms(sample_dataset, destination.folder = tempdir())
df <- fst::read_fst(paste0(tempdir(), "/vms_2019_1_1_10_preprocessed.fst"))
model_vms(df)
# }

Run the code above in your browser using DataLab