Description Usage Arguments Value Note Author(s) References See Also Examples
Save or retrieve the grid size from the active sqlite database.
1 2 | gridSize.save(con, ...)
gridSize.fetch(con)
|
con |
A connection pointing to a valid |
... |
|
|
Returns a numeric vector of one unit length containing the grid size previously saved by |
If gridSize
is not given the default grid size is computed based on the bounding box as the
range of the smallest axis /100.
Mihai Valcu valcu@orn.mpg.de
Valcu, M., Dale, J. and Kempenaers, B. (2012) rangeMapper: A platform for the study of macroecology of life history traits. 21(9). (DOI: 10.1111/j.1466-8238.2011.00739.x)
1 2 3 4 5 6 7 8 9 10 | require(rangeMapper)
wd = tempdir()
dbcon = rangeMap.start(file = "test.sqlite", overwrite = TRUE, dir = wd )
global.bbox.save(con = dbcon)
gridSize.save(dbcon, gridSize = 2)
dbcon = rangeMap.start(file = "test.sqlite", overwrite = TRUE, dir = wd )
global.bbox.save(con = dbcon)
gridSize.save(dbcon)
gridSize.fetch(dbcon) #default grid size value
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.