Learn R Programming

idx2r (version 1.0.0)

write_idx: Write an array into an IDX file

Description

This function allows to write an array into an IDX file.

Usage

write_idx(x, file_name, endian = "big")

Arguments

x

must be a array or a matrix

file_name

character vector containing the name of the file to be created

endian

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

Examples

Run this code
# NOT RUN {
m = matrix(1:16, nrow = 4)
file_name = file.path(tempdir(),"m.idx")
write_idx(m, file_name)    
# }

Run the code above in your browser using DataLab