This function simulates Include objects.
Arguments
- dataset
Dataset object.
- n
integernumber of objects to simulate.
Value
A list of simulated Include objects.
Examples
# find data file paths
f1 <- system.file(
"extdata", "projects", "sim_raster", "sim_raster_spatial.tif",
package = "wheretowork"
)
f2 <- system.file(
"extdata", "projects", "sim_raster", "sim_raster_attribute.csv.gz",
package = "wheretowork"
)
f3 <- system.file(
"extdata", "projects", "sim_raster", "sim_raster_boundary.csv.gz",
package = "wheretowork"
)
# create new dataset
d <- new_dataset(f1, f2, f3)
# simulate data
x <- simulate_includes(dataset = d, n = 2)
# print results
print(x)
#> [[1]]
#> Include
#> id: 3dec6fbf-cc5b-48ff-8bb1-48c135ea59fc
#> name: OECM areas
#> variable: .../sim_raster_spatial.tif#OECM_areas [total: 168 ]
#> pane: 4ab83549-07c7-4a9f-884c-b27721e3515c-OECM_areas
#> visible: TRUE
#> invisible: NA
#> loaded: TRUE
#> hidden: FALSE
#> downloadable: TRUE
#> status: TRUE
#> overlap: NA
#>
#> [[2]]
#> Include
#> id: 1147b29d-67be-40e8-b0bb-62b90b027654
#> name: Special Protection Area
#> variable: .../sim_raster_spatial.tif#Special_Protection_Area [total: 156 ]
#> pane: 616336c6-e66d-4a8e-8fa6-7ace6ea83bbb-Special_Protection_Area
#> visible: TRUE
#> invisible: NA
#> loaded: TRUE
#> hidden: FALSE
#> downloadable: TRUE
#> status: TRUE
#> overlap: NA
#>