rpkc_g: Remove Parents Keep Children - Group variant

Description Usage Arguments Value References Examples

Description

Remove Parents Keep Children - Group variant

Usage

1
rpkc_g(x, value.var = NULL, group = NULL, option = c("C", "K", "L"))

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.

option

character; Currently only C and L options are supported.

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
14
## Not run: 
data(samp)
df <- samp[1:4, ]
df <- data.frame(t(df), stringsAsFactors = FALSE)
df[ , 'taxon'] <- rownames(df)
df_w <- get_hier(df, taxa.var = 'taxon', db = 'itis')
rpkc_g(df_w, value.var = 'S2', group = c('S1', 'S2', 'S3', 'S4'), option = 'L')
# group all samples
rpkc_g(df_w, value.var = 'S2', option = 'L')
# all samples at once
rpkc_g(df_w, option = 'L')
rpkc_g(df_w, value.var = 'S2', group = c('S1', 'S2', 'S3', 'S4'), option = 'C')

## End(Not run)

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