Description Usage Arguments Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_basics_v1.R
Takes a matrix mat
, converts any instances of the
nullsym
symbol to NA
.
1 | nullsym_to_NA(mat, nullsym = "-")
|
mat |
A matrix. |
nullsym |
A character specifying the null symbol. |
mat
The revised matrix
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster
Matzke_2012_IBS
1 2 3 4 5 | testval=1
mat = matrix(c("-",1,1,1,"-",1,1,1,"-"), nrow=3)
mat
mat2 = nullsym_to_NA(mat, nullsym="-")
mat2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.