read_idx: Read an IDX file

Description Usage Arguments Examples

View source: R/read_idx.R

Description

This function allows to read an IDX file

Usage

1
read_idx(file_name, endian = "big")

Arguments

file_name

character vector containing the name of the file to be read

endian

whether the file has "big" or "little" endian

Examples

1
2
3
4
m = matrix(1:16, nrow = 4)
file_name = file.path(tempdir(),"m.idx")
write_idx(m, file_name)  
mr = read_idx(file_name) 

Example output



idx2r documentation built on May 2, 2019, 9:51 a.m.