nullsym_to_NA: Convert a specified null range code to NA

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

View source: R/BioGeoBEARS_basics_v1.R

Description

Takes a matrix mat, converts any instances of the nullsym symbol to NA.

Usage

1
  nullsym_to_NA(mat, nullsym = "-")

Arguments

mat

A matrix.

nullsym

A character specifying the null symbol.

Value

mat The revised matrix

Note

Go BEARS!

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

See Also

remove_null_rowcols_from_mat

Examples

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

BioGeoBEARS documentation built on May 29, 2017, 8:36 p.m.