View source: R/class_Exclude.R
new_exclude | R Documentation |
Create a new Exclude object.
new_exclude(
name,
variable,
mandatory = FALSE,
visible = TRUE,
invisible = NA_real_,
loaded = TRUE,
hidden = FALSE,
downloadable = TRUE,
status = FALSE,
overlap = NA_character_,
id = uuid::UUIDgenerate(),
pane = paste(uuid::UUIDgenerate(), variable$index, sep = "-")
)
name |
|
variable |
Variable object. |
mandatory |
|
visible |
|
invisible |
|
loaded |
|
| |
downloadable |
|
status |
|
overlap |
|
id |
|
pane |
|
A Exclude object.
# 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)
# create new variable
v <- new_variable_from_auto(d, index = 1)
# create a new exclude
e <- new_exclude(name = "Protected areas", variable = v)
# print object
print(e)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.