Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

block_size

Determine a correct value for the block.size parameter


Description

It determines the value of block.size such that a matrix of doubles of size n x block.size takes less memory than getOption("bigstatsr.block.sizeGB") GigaBytes (default is 1GB).

Usage

block_size(n, ncores = 1)

Arguments

n

The number of rows.

ncores

The number of cores.

Value

An integer >= 1.

Examples

block_size(1e3)
block_size(1e6)
block_size(1e6, 6)

bigstatsr

Statistical Tools for Filebacked Big Matrices

v1.5.1
GPL-3
Authors
Florian Privé [aut, cre], Michael Blum [ths], Hugues Aschard [ths]
Initial release
2021-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.