bigdist_subset {bigdist}R Documentation

Subset parts of bigdist

Description

Subset parts of bigdist

Usage

bigdist_subset(x, index, file)

Arguments

x

Object of class 'bigdist'

index

Indexes of the bigdist to be subset as a bigdist

file

(string) Name of the backing file to be created. Do not include trailing ".bk". See details for the backup file format.

Details

The filename format is of the form <somename>_<size>_<type>.bk where size is the number of observations and type is the data type like 'double', 'float'.

Examples

set.seed(1)
amat <- matrix(rnorm(1e3), ncol = 10)
td   <- tempdir()
temp <- bigdist(mat = amat, file = file.path(td, "temp_ex8"))
temp_subset <- bigdist_subset(temp, index = 21:30, file = file.path(td, "temp_ex9"))
temp_subset
temp_subset$fbm$backingfile

[Package bigdist version 0.1.4 Index]