Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mulset

A mulset function


Description

mulset() returns all multi-set intersections

Usage

mulset(data, exclude = NULL, include = c("samples", "samples_count",
  "datapoints"), maxIntersections = NULL, hashMethod = "md5")

Arguments

data

Data frame containing your data

exclude

Vector containing one or more variable names from names(data)

include

List of attributes which will be shown in results. Possible values are: c("samples", "samples_count", "datapoints"). If parameter is set to NULL only c("features", "feature_count") will be returned.

maxIntersections

Maximum number of unique datasets to generate, if NULL all datasets will be generated

hashMethod

Hashing method to use for unique sets identification. Available choices: md5(default), sha1, crc32, sha256, sha512, xxhash32, xxhash64, murmur32

Details

This function allows you to generate specific type of multi-set intersections. It searches for multi set intersections between rows and column identifiers. If no NA values are present only 1 dataset is returned as expected.

Value

If any intersections are found it returns a list that contains all available multi-set intersections You can convert this to data-frame following example provided or use it as it is.

Examples

data(mulsetDemo)
print(head(mulsetDemo))
resamples <- mulset(mulsetDemo, exclude = c("outcome", "age", "gender"), maxIntersections = 250)
## Loop through returned list or convert it to data-frame
## resamplesFrame <- as.data.frame(t(sapply(resamples,c)))

mulset

Multiset Intersection Generator

v1.0.0
EUPL (>= 1.2)
Authors
Ivan Tomic [aut, cre, cph] (<https://orcid.org/0000-0003-3596-681X>), Adriana Tomic [aut, ctb] (<https://orcid.org/0000-0001-9885-3535>)
Initial release
2019-03-7

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.