Description Details Author(s) References Examples
Calculates the whole set, or any needed
Package: | BioCalc |
Type: | Package |
Version: | 0.1 |
Date: | 2009-12-26 |
License: | GPL2.0 |
LazyLoad: | yes |
Main functions are: BioCalc(folder, type=”) LoadMonthlyFiles(folder, varbl=”, type”) p1Calc(rlist, filename, format=”)
Among others (pXXCalc, XX = 1 to 19) that can be viewed by typing help(function) in the R console.
Julian Ramirez
Maintainer: Julian Ramirez <dawnpatrolmustaine@gmail.com>
Busby J.R. 1991. BIOCLIM: a bioclimatic analysis and prediction system. In C.R. Margules, M.P. Austin, eds. Nature conservation: cost effective biological surveys and data analysis, pp. 64,68. Canberra, Australia, Commonwealth Scientific and Industrial Research Organisation, CSIRO.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Folder where your data is stored (in ascii format, for example)
# dir <- "C://MyMonthlyData//"
#
# Load monthly precipitation to calculate P12 (total annual rainfall)
# preclist <- LoadMonthlyFiles(dir, ext='.asc', varbl='prec', format='ascii')
#
# Now calculate P12
# outfile <- paste(dir, "//P12.asc", sep="")
# p12 <- p12Calc(preclist, outfile, format='ascii')
#
# Or just calculate the whole set
# bioclim <- BioCalc(dir, ext='.asc', format='ascii')
#
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.