gjamReZero: Expand (re-zero) gjam data

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/gjamReZero.r

Description

Returns a re-zeroed matrix y from the de-zeroed vector, a sparse matrix.

Usage

1
  gjamReZero( yDeZero )

Arguments

yDeZero

list created by gjamReZero containing number of rows n, number of columns S, index for non-zeros index, the vector of non-zero values yvec, and the column names ynames.

Details

Many abundance data sets are mostly zeros. gjamReZero recovers the full matrix from de-zeroed list yDeZero written by gjamDeZero

Value

ymat

re-zeroed n by S matrix.

Author(s)

James S Clark, jimclark@duke.edu

References

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.

See Also

gjamDeZero to de-zero ymat

browseVignettes('gjam')

website: 'http://sites.nicholas.duke.edu/clarklab/code/'.

Examples

1
2
3
4
5
6
7
8
## 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)

gjam documentation built on July 14, 2021, 9:06 a.m.