Description Usage Arguments Methods (by class) Examples
processRanges
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | processRanges(con, spdf, dir, ID, metadata, parallel)
## S4 method for signature
## 'SQLiteConnection,SpatialPolygonsDataFrame,missing,character,missing'
processRanges(con,
spdf, ID, metadata, parallel)
## S4 method for signature
## 'SQLiteConnection,SpatialPolygonsDataFrame,missing,character,list'
processRanges(con,
spdf, ID, metadata, parallel)
## S4 method for signature 'SQLiteConnection,missing,character,missing,missing'
processRanges(con,
dir, parallel)
## S4 method for signature 'SQLiteConnection,missing,character,missing,list'
processRanges(con,
dir, metadata, parallel)
|
con |
a |
spdf |
|
dir |
ranges file directory where the individual ranges shp files are located. In this case the range ID is the file name. |
ID |
a character vector of length one. An |
metadata |
a named list of functions. See |
parallel |
default to FALSE. When TRUE a |
con = SQLiteConnection,spdf = SpatialPolygonsDataFrame,dir = missing,ID = character,metadata = missing
: Method 1: One SpatialPolygonsDataFrame containing all the ranges. No metadata.
con = SQLiteConnection,spdf = SpatialPolygonsDataFrame,dir = missing,ID = character,metadata = list
: Method 2: One SpatialPolygonsDataFrame containing all the ranges. Metadata are computed.
con = SQLiteConnection,spdf = missing,dir = character,ID = missing,metadata = missing
: Method 3: Each range file is a separate shp file. No metadata.
con = SQLiteConnection,spdf = missing,dir = character,ID = missing,metadata = list
: Method 4: Each range file is a separate shp file. Metadata are computed.
1 2 3 4 5 6 7 8 9 10 11 | require(rangeMapper)
require(rgdal)
dbcon = rangeMap.start(file = "wrens.sqlite", dir = tempdir(), overwrite = TRUE)
f = system.file(package = "rangeMapper", "extdata", "wrens", "vector_combined")
r = readOGR(f, "wrens", verbose = FALSE)[1:50, ]
global.bbox.save(con = dbcon, bbox = r)
gridSize.save(dbcon, gridSize = 5)
canvas.save(dbcon)
processRanges(con = dbcon, spdf = r, ID = "sci_name", metadata = rangeTraits() )
dbDisconnect(dbcon)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.