im2list: Incidence matrix to list

im2listR Documentation

Incidence matrix to list

Description

Incidence matrix to list

Usage

im2list(x, empty = list(NA, "", 0, FALSE), ...)

Arguments

x

matrix where non-empty values indicate presence of each element (row) in each set (column).

empty

list of values recognized as empty. Each item is co-erced to the class in columns of x.

...

additional arguments are ignored.

Details

This function is the reciprocal to list2im(). This function will also convert a signed incidence matrix to a normal list, removing the directional sign.

See Also

Other venndir conversion: counts2setlist(), im_value2list(), list2im_opt(), list2im_value(), overlaplist2setlist(), signed_counts2setlist()

Examples

setlist <- make_venn_test(100, 3, do_signed=TRUE)
ims <- list2im_value(setlist);
print(head(ims));

# convert back to list
im_value2list(ims);
im2list(ims);


jmw86069/venndir documentation built on Dec. 14, 2024, 2:36 p.m.