write.venn.2D.xls: Write a 2D Venn diagram to an Excel file

Description Usage Arguments Value Author(s) Examples

Description

Compare 2 vectors, and export an XLS file listing 4 comparisons: union, intersection, only in x, or y Optionally, the 2 input vectors can be exported via the exportXY=TRUE parameter.

Usage

1
2
write.venn.2D.xls(x, y, file, names = c("A", "B"), sortfun = sort,
  exportXY = FALSE)

Arguments

x

a vector

y

a vector

file

the xls file to write to

names

a character[2] corresponding to the names for x and y

sortfun

the function to sort the elements

exportXY

logical: if TRUE, then the original x, y values are written in first 2 columns

Value

a 4 column XLS file is written, with these names: “only in x”, “only in y”, “intersect”, “union”

Author(s)

Mark Cowley, 2009-02-02

Examples

1
2
f <- tempfile()
write.venn.2D.xls(LETTERS[1:10], LETTERS[7:15], f)

drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.