gjamReZero | R Documentation |
Returns a re-zeroed matrix y
from the de-zeroed vector, a sparse matrix.
gjamReZero( yDeZero )
yDeZero |
|
Many abundance data sets are mostly zeros. gjamReZero
recovers the full matrix from de-zeroed list yDeZero
written by gjamDeZero
|
re-zeroed |
James S Clark, jimclark@duke.edu
Clark, J.S., D. Nemergut, B. Seyednasrollah, P. Turner, and S. Zhang. 2016. Generalized joint attribute modeling for biodiversity analysis: Median-zero, multivariate, multifarious data. Ecological Monographs 87, 34-56.
gjamDeZero
to de-zero ymat
browseVignettes('gjam')
website: 'http://sites.nicholas.duke.edu/clarklab/code/'.
## Not run: library(repmis) source_data("https://github.com/jimclarkatduke/gjam/blob/master/fungEnd.RData?raw=True") ymat <- gjamReZero(fungEnd$yDeZero) # OTUs stored without zeros length(fungEnd$yDeZero$yvec) # size of stored version length(ymat) # full size ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.