blocksize: blocksize

Description Usage Arguments Value Examples

View source: R/blocksize.R

Description

Return the maximum number of rows to use based on the amount of ram memory.

Usage

1
blocksize(data, ram = get_ram())

Arguments

data

matrix-like object.

ram

the max amount of ram (in bytes) to use.

Value

Numeric value of the maximum number of rows.

Examples

1
2
data <- matrix(NA, nrow = 100, ncol=1000)
blocksize(data, ram=1e6)

mbkmeans documentation built on Nov. 15, 2020, 2:07 a.m.