This function simulates Exclude objects.
Arguments
- dataset
Dataset object.
- n
integer
number 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: 05397f62-c42d-4424-a3ca-700c2b6ba7b0
#> name: Private land
#> variable: .../sim_raster_spatial.tif#Private_land [total: 134 ]
#> pane: 7ebbf65f-5f57-41f1-a873-f31fdc8009fa-Private_land
#> visible: TRUE
#> invisible: NA
#> loaded: TRUE
#> hidden: FALSE
#> downloadable: TRUE
#> status: FALSE
#> overlap: NA
#>
#> [[2]]
#> Exclude
#> id: c398b6bf-68c6-41fd-a335-4d7c736dcf9d
#> name: Uplands
#> variable: .../sim_raster_spatial.tif#Uplands [total: 142 ]
#> pane: 0cfa3986-3fb3-4daa-9d87-f2ba4c3a4f06-Uplands
#> visible: TRUE
#> invisible: NA
#> loaded: TRUE
#> hidden: FALSE
#> downloadable: TRUE
#> status: FALSE
#> overlap: NA
#>