This function simulates Exclude objects.
Arguments
- dataset
Dataset object.
- n
integernumber of objects to simulate.
Value
A list of simulated Exclude 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_excludes(dataset = d, n = 2)
# print results
print(x)
#> [[1]]
#> Exclude
#> id: 26fcab58-c096-4a26-bdd1-4ef9543c650c
#> name: Private land
#> variable: .../sim_raster_spatial.tif#Private_land [total: 134 ]
#> pane: 90c92464-f9f3-4d32-a5cd-062c7a40c68a-Private_land
#> visible: TRUE
#> invisible: NA
#> loaded: TRUE
#> hidden: FALSE
#> downloadable: TRUE
#> status: FALSE
#> overlap: NA
#>
#> [[2]]
#> Exclude
#> id: 03283844-7023-43fe-9c68-d8d2381d93df
#> name: Uplands
#> variable: .../sim_raster_spatial.tif#Uplands [total: 142 ]
#> pane: 959f3412-52b5-4780-b552-fd37902517ae-Uplands
#> visible: TRUE
#> invisible: NA
#> loaded: TRUE
#> hidden: FALSE
#> downloadable: TRUE
#> status: FALSE
#> overlap: NA
#>