Skip to contents

A collection of function for fetching famous remote data sets.

Usage

fetch_bunny(data_folder, accept_license = FALSE)

fetch_spiral_2d(data_folder)

clear_data_home(data_folder)

Arguments

data_folder

A string specifying a location for storing data ot be used with GUDHI.

accept_license

A boolean specifying whether the user accepts the file LICENSE and prevents from printing the corresponding license terms. Defaults to FALSE.

Value

A numeric array storing the points of the corresponding data set.

Stanford bunny dataset

The fetch_bunny() function returns a numeric array of shape \(35947 \times 3\).

spiral_2d dataset

The fetch_spiral_2d() function returns a numeric array of shape \(114,562 \times 2\).

Examples

if (FALSE) { # reticulate::py_module_available("gudhi")
b <- withr::with_tempdir({fetch_bunny(getwd())})
s <- withr::with_tempdir({fetch_spiral_2d(getwd())})
}