Learn R Programming

rangeMapper (version 0.2-6)

gridSize.save: Save or retrieve the grid size from an rangeMapper project.

Description

Save or retrieve the grid size from the active sqlite database.

Usage

gridSize.save(con, ...) 
gridSize.fetch(con)

Arguments

con
A connection pointing to a valid rangeMapper project.
...
gridSize: A numeric vector of one unit length. See notes.

Value

  • gridSize.fetchReturns a numeric vector of one unit length containing the grid size previously saved by gridSize.save

References

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)

See Also

rangeMap.save. global.bbox

Examples

Run this code
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

Run the code above in your browser using DataLab