Partitioning {vegsoup}R Documentation

Partitioning Vector of VegsoupPartition objects

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

## 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

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)

[Package vegsoup version 0.2-9 Index]