View source: R/fcts packages.R
val | R Documentation |
Extract only occupied cells in a raster object,
val(grid, id)
grid |
An object generated by the function adj2stack |
id |
Metric to be used (2=Weight, 3=Degree, 4=Betweenness, 5=Transitivity, 6=Eccentricity) |
A vector
traj1<-sim_mov(type="OU", npatches=3, grph=T)
stck<-adj2stack(traj2adj(traj1, res=quant(traj1)), grph=T)
mean(val(stck, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.