Description Usage Arguments Value Author(s) Examples
If x is a list of variably lengthed vectors, then return a table which has the unique values as the rownames, and the names(x) as the colnames, with either a 0 or 1 depending on whether the entity in row i was found in the vector in column j. Sorted by decreasing frequency across the list of vectors (ie row 1 contains the word that was found in the most number of vectors in list x)
1 | list2adjmat(x)
|
x |
a named list, where each element is a character vector. If it's unnamed, names will be assigned |
a data.frame of 0 or 1, where rows correspond to unique words, columns represent each list element.
Mark Cowley, 2009-10-29
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.