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: 5ca300f2-dafd-49a7-be40-0df7b112405a
#> name: OECM areas
#> variable: .../sim_raster_spatial.tif#OECM_areas [total: 168 ]
#> pane: 5be78d2d-7c65-4b27-b997-2f8d52fee5bb-OECM_areas
#> visible: TRUE
#> invisible: NA
#> loaded: TRUE
#> hidden: FALSE
#> downloadable: TRUE
#> status: TRUE
#> overlap: NA
#>
#> [[2]]
#> Include
#> id: 55cf68e2-99e6-4693-955e-030420c52077
#> name: Special Protection Area
#> variable: .../sim_raster_spatial.tif#Special_Protection_Area [total: 156 ]
#> pane: 20e4e0dc-82c2-42c8-ab75-f48cfc5beae4-Special_Protection_Area
#> visible: TRUE
#> invisible: NA
#> loaded: TRUE
#> hidden: FALSE
#> downloadable: TRUE
#> status: TRUE
#> overlap: NA
#>