Partitioning: Partitioning Vector of VegsoupPartition objects

Description Usage Arguments Value Author(s) See Also Examples

Description

Retrieve the number of partitions (getK), the partitioning vector (partitioning), the number of samples per partition (partitions), create a matrix of memberships of plots to partitions (partitioningMatrix), or tabulate all possible combinations of partitions (partitioningCombinations).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S4 method for signature 'VegsoupPartition'
getK(x)

## S4 method for signature 'VegsoupPartition'
partitioning(x)

## S4 method for signature 'VegsoupPartition'
partitions(x)

## S4 method for signature 'VegsoupPartition'
partitioningMatrix(x)

## S4 method for signature 'VegsoupPartition'
partitioningCombinations(x, collapse)

Arguments

x

'VegsoupPartition' object.

collapse

Character be be used as separator in dimnames. Only characters are allowed that can be identified with grep("[:punct:]", collapse). See regex in package base for details.

Value

partitioning

returns the running partitioning vector.

partitioningMatrix

returns a matrix of zeros and ones where rows are plots and columns are partitions. Ones indicate to which partition a plot belongs.

partitioningCombinations

returns a matrix of combinations where column names indicate a particular combination.

Author(s)

Roland Kaiser

See Also

getK, VegsoupPartition

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
require(vegsoup)

data(barmstein)
x <- VegsoupPartition(barmstein, k = 2)

# number of partitions
getK(x)

# vector of assigments
partitioning(x)

# number of samples per partition
partitions(x)

# matrix of memberships
partitioningMatrix(x)

# matrix of possible combinations
partitioningCombinations(x)

vegsoup documentation built on Feb. 24, 2021, 3 a.m.