cardinality: Determine cardinality between two vectors

cardinalityR Documentation

Determine cardinality between two vectors

Description

Determine cardinality between two vectors

Usage

cardinality(x, y = NULL, verbose = FALSE, ...)

See Also

Other jam utility functions: color_complement(), convert_PD_df_to_SE(), convert_imputed_assays_to_na(), curate_se_colData(), curate_to_df_by_pattern(), design2layout(), get_numeric_transform(), handle_df_args(), merge_proteomics_se(), nmat_summary(), nmatlist_summary(), rmd_tab_iterator(), rowNormScale(), summit_from_vector()

Examples

a <- letters[c(1, 1, 2, 2, 2, 3)];
b <- LETTERS[c(1, 2, 3, 4, 5, 6)];
d <- LETTERS[c(1, 2, 2, 1, 1, 1)];

cardinality(a, b)
cardinality(b, a)

ab <- data.frame(a, b)
ad <- data.frame(a, d)
cardinality(ab, ad)

abt <- tibble::tibble(a, b);
adt <- tibble::tibble(a, d);
cardinality(abt, adt)

abm <- as.matrix(abt);
adm <- as.matrix(adt);
cardinality(abm, adm)

cardinality(d, adm, verbose=TRUE)

cardinality(d, adm, verbose=2)


jmw86069/platjam documentation built on Sept. 26, 2024, 3:31 p.m.