View source: R/subsetMarCadAIS.R
subsetMarCadAIS | R Documentation |
Subsets the full download files from Marine Cadastre to a smaller region so that they are easier to work with
subsetMarCadAIS(
inDir,
outDir,
latRange = c(20, 50),
lonRange = c(-140, -110),
name = "West_",
overwrite = FALSE,
progress = TRUE
)
inDir |
directory containing Marine Cadastre AIS CSV files to subset |
outDir |
directory to write subsetted files to |
latRange |
range of desired latitudes (decimal degrees) |
lonRange |
range of desired longitudes (decimal degrees) |
name |
prefix to append to new filenames |
overwrite |
logical flag to overwrite existing files |
progress |
logical flag to show progress bar |
invisibly return new file names
Taiki Sakai taiki.sakai@noaa.gov
outDir <- tempdir()
localFiles <- subsetMarCadAIS('AISData', outDir=outDir,
latRange=c(20, 50), lonRange=c(-140, -110),
name='West_')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.