Skip to contents

Generic functions to count the number of multiprocessing (respectively sa_item) inside a workspace (respectively multiprocessing).

Usage

count(x)

Arguments

x

the workspace or the multiprocessing.

See also

Other functions to retrieve information from a workspace, multiprocessing or sa_item: get_model, get_name, get_ts.

Examples

wk <- new_workspace()
mp <- new_multiprocessing(wk, "sap1")
count(wk) # 1 multiprocessing inside the workspace wk
#> [1] 1
count(mp) # 0 sa_item inside the multiprocessing mp
#> [1] 0