rpmc_g: Remove Parent or Merge Child (RPMC) - Group variant.

Description Usage Arguments Value References Examples

Description

Remove Parent or Merge Child (RPMC) - Group variant.

Usage

1
rpmc_g(x, value.var = NULL, group = NULL)

Arguments

x

list; An object of class wide_class as returned by get_hier.

value.var

character; Which sampledf_w$ should be resolved. If NULL all samples are resolved.

group

character; Names of columns (=samples) for grouping. If NULL all samples are grouped.

Value

a list of class 'restax', with the following elements

References

Cuffney, T. F., Bilger, M. D. & Haigler, A. M. Ambiguous taxa: effects on the characterization and interpretation of invertebrate assemblages. Journal of the North American Benthological Society 26, 286-307 (2007).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
data(samp)
# transpose data
df <- data.frame(t(samp), stringsAsFactors = FALSE)
df[ , 'taxon'] <- rownames(df)
df_w <- get_hier(df, taxa.var = 'taxon', db = 'itis')
rpmc_g(df_w, value.var = 'S3', group = c('S1', 'S2', 'S3', 'S4'))
# using all samples for grouping
rpmc_g(df_w, value.var = 'S3')
# All samples at one time
rpmc_g(df_w)

## End(Not run)

EDiLD/restax documentation built on May 6, 2019, 3:04 p.m.