bigdist_subset: Subset parts of bigdist

Description Usage Arguments Details Examples

Description

Subset parts of bigdist

Usage

1
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

1
2
3
4
5
6
7
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

bigdist documentation built on May 1, 2019, 10:23 p.m.