check and format slice name

slice_idx(venn, slice)

Arguments

venn

a Venn object

slice

a numeric or character vector

Value

the index of Venn (numeric vector) or "all"