Chapter 2 Data Import
The first key step in using Venndir is to convert data into a recognized format. The two native formats are List of sets and List of signed sets.
There are several formats available:
- List of sets, referred to as a
setlist- a
listofcharacteritem vectors. - sets are represented by
names(setlist)
- a
- List of signed sets, referred to as a signed
setlist- a
listof signednumericvectors. - signed vectors use values
-1or1, and store items innames(). - sets are represented by
names(setlist)
- a
- Incidence matrix
- a
numericmatrix with items asrownames(), sets ascolnames(). - items are indicated by the value
1in the appropriate row and column.
- a
- Signed incidence matrix
- a
numericmatrix with items asrownames(), sets ascolnames(). - items are indicated by
-1or1in the appropriate row and column.
- a
- Overlap counts
- a
numericvector with the number of items in each overlap. - the overlap name is stored in
names(), in format:'A','B','A&B'.
- a
- Signed overlap counts
- a
listofnumericvectors, named by overlap set. - each overlap is also a
listnamed by the directionality.
- a
- Other formats
- Specialized formats