mmapchar-class: Class mmapchar

Description Usage Arguments Examples

Description

A reference class for storing and accessing matrix-like data stored on disk in files containing only characters (digits) separated by a character.

Usage

1
mmapchar(file, code)

Arguments

file

Path of the file.

code

Integer vector of size 256 to access integers instead of rawToChar(as.raw(0:255), multiple = TRUE). See mmapcharr:::CODE_012 and mmapcharr:::CODE_DIGITS.

Examples

1
2
3
4
5
test_file <- system.file("testdata/test-windows.txt", package = "mmapcharr")
test <- mmapchar(test_file, code = mmapcharr:::CODE_012)
test[, 1:3]
test[]
readLines(test_file)

privefl/mmapcharr documentation built on Aug. 14, 2018, 11:01 a.m.