struct {matter} | R Documentation |
This is a convenience function for creating and reading C-style structs in a single file stored in virtual memory.
struct(..., filename = NULL, filemode = "rw", offset = 0)
... |
Named integers giving the members of the |
filename |
A single string giving the name of the file. |
filemode |
The mode to use to open the file. |
offset |
A scalar integer giving the offset from the beginning of the file. |
This is simply a convenient wrapper around the wrapper around matter_list
that allows easy specification of C-style structs in a file.
A object of class matter_list
.
Kylie A. Bemis
x <- struct(first=c(int=1), second=c(double=1)) x$first <- 2L x$second <- 3.33 x$first x$second