Supports two layouts: * Binary mode (default): one row per item, with 0/1 columns marking membership in each set. The first `prefix_cols` columns are item metadata; remaining columns are sets. * Aggregated mode (`binary = FALSE`): each column is a set, and cells contain item identifiers. Empty cells are ignored.
Examples
tmp <- tempfile(fileext = ".csv")
writeLines(c("Gene,SetA,SetB", "G1,1,0", "G2,1,1", "G3,0,1"), tmp)
ds <- load_csv(tmp, binary = TRUE)
ds@set_names
#> [1] "SetA" "SetB"