scenarioJSON: Create JSON files for multiple travel scenarios

scenarioJSONR Documentation

Create JSON files for multiple travel scenarios

Description

From multiple travel scenarios table, the function creates a JSON file that can be used when running an AccessMod replay by command line.

Usage

scenarioJSON(inputFolder, landcoverFile, outputFolder, fileName)

Arguments

inputFolder

character; the path to the input folder, which must contains an administrative unit shapefile, a merged landcover imported from AccessMod and an Excel or CSV table for each travel scenario.

landcoverFile

character; the file name of the original merged landcover (with extension).

outputFolder

character; the output folder where the JSON file will be written.

fileName

character; the name of the output JSON file (without extension).

Details

A JSON file is created in the output folder.


ptimoner/inAccMod documentation built on Jan. 27, 2025, 9:34 a.m.