resolveCompartments: Resolve compartments for diem input files

View source: R/internal.r

resolveCompartmentsR Documentation

Resolve compartments for diem input files

Description

Generates a list of logical vectors indicating which sites should be compartmentalized. If toBeCompartmentalized is "all", all sites are marked as TRUE. Otherwise, a logical vector must be provided with a length matching the total number of sites.

Usage

resolveCompartments(files, toBeCompartmentalized, compartmentSizes = NULL)

Arguments

files

Paths to diem input files.

toBeCompartmentalized

Either "all" or a logical vector specifying sites to compartmentalize.

compartmentSizes

Optional vector specifying the number of sites per file.

Value

A list of logical vectors corresponding to each file.


diemr documentation built on Dec. 11, 2025, 5:07 p.m.