View source: R/tableFromSpeciesRaster.R
tableFromSpeciesRaster | R Documentation |
Given one or several speciesRaster objects, create a table of values and associated coordinate data.
tableFromSpeciesRaster(..., n = NULL, dropSingleSpCells = TRUE)
... |
objects of class |
n |
number of cells to randomly subsample, no subsampling if |
dropSingleSpCells |
logical; should cells with single species be excluded? |
A set of cells are identified in the speciesRaster objects. If n=NULL
,
then all cells are used, otherwise cells are randomly subsampled. Values at those
cells are then returned. This table construction can be particularly useful for
subsequent statistical analyses.
Only cells with data in all inputs are returned. If n is greater than the number of cells with data, then fewer than n cells will be returned.
data.frame with input variables, as well as "long"
and "lat"
.
Pascal Title
tamiasSpRas tamiasSpRas <- addPhylo_speciesRaster(tamiasSpRas, tamiasTree) tamiasSpRas <- addTraits_speciesRaster(tamiasSpRas, tamiasTraits) morphoDisp <- cellMetrics_speciesRaster(tamiasSpRas, metric='disparity') meanPat <- cellMetrics_speciesRaster(tamiasSpRas, metric='meanPatristic') tableFromSpeciesRaster(tamiasSpRas, morphoDisp, meanPat, n = 100, dropSingleSpCells = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.