Description Usage Details Examples
List to incidence matrix
1 | list2im_opt(setlist, ...)
|
This function takes a list of character
vectors and returns
a numeric
matrix
whose rownames are entries from the
character
vectors, colnames are names
from the setlist
,
and whose values are 0
or 1
.
1 2 | setlist <- list(setA=LETTERS[1:10], setB=LETTERS[7:14]);
list2im_opt(setlist);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.