model_vms {dafishr} | R Documentation |
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)
Arguments
df |
a data.frame preprocessed using the |
Value
a data.frame with a vessel_state
column with the type of model implemented
Examples
preprocessing_vms(sample_dataset, destination.folder = tempdir())
df <- fst::read_fst(paste0(tempdir(), "/vms_2019_1_1_10_preprocessed.fst"))
model_vms(df)
[Package dafishr version 1.0.1 Index]