blocksize: blocksize

View source: R/blocksize.R

blocksizeR Documentation

blocksize

Description

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

Usage

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

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

drisso/mbkmeans documentation built on April 6, 2022, 4:33 a.m.