View source: R/fct_simulate_themes.R
simulate_themes | R Documentation |
This function simulates Theme objects.
simulate_themes(
dataset,
n_single_themes,
n_multi_themes,
lambda = 5,
continuous = NA
)
dataset |
Dataset object. |
n_single_themes |
|
n_multi_themes |
|
lambda |
|
continuous |
|
A list
of simulated Theme objects.
new_theme.
# 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_themes(data = d, n_single_themes = 3, n_multi_themes = 2)
# print results
print(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.