Learn R Programming

DEPONS2R (version 1.2.6)

write,DeponsShips-method: Write DEPONS ship files

Description

Function for writing a json-file for controlling how ship agents behave in DEPONS. Ships move along pre-defined routes in 30-min time steps. The routes are defined by the fix-points provided in the json file, and the geographic projection is assumed to match that of the landscape. The projection is not stored as part of the json file.

Usage

# S4 method for DeponsShips
write(x, file)

Value

No return value, called for side effects

Arguments

x

Name of the DeponsShips object to be exported

file

Name of the output file (character)