This function simulates Include objects.

simulate_includes(dataset, n)

Arguments

dataset

Dataset object.

n

integer number of objects to simulate.

Value

A list of simulated Include objects.

See also

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:       2d86e08f-5d1a-4cfc-9029-cceee7300088
#>   name:     Protected landscapes
#>   variable: .../sim_raster_spatial.tif#Protected_landscapes [total: 183 ]
#>   pane:  1d336238-e346-440b-8a37-7e7b8e60af87-Protected_landscapes
#>   visible:  TRUE
#>   invisible:  NA
#>   loaded:  TRUE
#>   hidden:  FALSE
#>   status:   TRUE
#>   overlap:   NA
#> 
#> [[2]]
#> Include
#>   id:       5d0fbafd-d0bc-477e-bf64-39fc11a270f7
#>   name:     Special Protection Area
#>   variable: .../sim_raster_spatial.tif#Special_Protection_Area [total: 144 ]
#>   pane:  89fbf563-4402-46ec-ac5b-d2275a5efef9-Special_Protection_Area
#>   visible:  TRUE
#>   invisible:  NA
#>   loaded:  TRUE
#>   hidden:  FALSE
#>   status:   TRUE
#>   overlap:   NA
#>