twin: Twin/Untwin

Description Usage Arguments Value See Also Examples

Description

Put twin datasets into one object (a list of lists), or else combine a twin object into a merged list.

Usage

1
2
3
twin(spe1, spe2, id1, id2, ...)

untwin(x, ...)

Arguments

spe1

dataset 1 species matrix

spe2

dataset 2 species matrix

id1

dataset 1 environmental/identifier matrix

id2

dataset 2 environmental/identifier matrix

...

additional arguments passed to function

x

twin object

Value

twin returns a list of two named items: 'z1' and 'z2', each of which is a list with two named items: 'spe' and 'id'
untwin returns a list with two named items: 'spe' and 'id'

See Also

nearestspecies to force same number of rows

Examples

1
2
3
4
5
6
7
8
data(smoky)
spe <- smoky$spe
env <- smoky$env
tw  <- twin(spe, spe, env, env)
utw <- untwin(tw)

# must have same number of rows per dataset:
## Not run: twin(spe, spe[3:9,], env, env[3:9,])

phytomosaic/fitNMDS documentation built on May 17, 2019, 8:19 p.m.