get.mldr: Get a multilabel dataset by name

Description Usage Arguments Examples

View source: R/utils.R

Description

get.mldr obtains a multilabel dataset, either by finding it inside the package data, in the download directory or by downloading it.

Usage

1
2
3
get.mldr(name, download.dir = if
  (is.null(getOption("mldr.download.dir"))) tempdir() else
  getOption("mldr.download.dir"))

Arguments

name

Name of the dataset to load

download.dir

The path to the download directory, can be also set through options()

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(mldr.datasets)
# customize the download directory
options(mldr.download.dir = "./datasets")
# retrieve the bibtex dataset, as an mldr object, into a variable
bibtex <- get.mldr("bibtex")
bibtex$measures

## End(Not run)

mldr.datasets documentation built on May 2, 2019, 3:43 p.m.