View source: R/delete.region.r
delete.region | R Documentation |
deletes a specified region from the region_definitions-definition file
delete.region(region,lib.folder,restore=F)
region |
Character string identifying the region that should be deleted. See region_definitions for area definitions and use add.region to add new regions. |
lib.folder |
Character string indicating R-library path in which the oceanmap-package is installed. |
restore |
whether the original region_definitions-file should be restored. |
Robert K. Bauer
add.region, region_definitions, regions, writebin
## Example 1: Add region by supplying a one-row data.frame
## that holds the entire required information
data(region_definitions)
lion <- region_definitions[region_definitions$label == 'lion',] # selecting Gulf of Lions region
lion
junk <- lion
junk$label <- 'junk' # rename region label
#add.region(junk) # add junk region
data(region_definitions) # reload region_definitions
region_definitions[,1:9]
## Example 2: Delete region
#delete.region("junk") # delete junk region
data(region_definitions) # reload region_definitions
region_definitions[,1:9]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.