struct | R Documentation |
This is a convenience function for creating and reading C-style structs in a single file stored in virtual memory.
struct(..., path = NULL, readonly = FALSE, offset = 0, filename)
... |
Named integers giving the members of the |
path , filename |
A single string giving the name of the file. |
readonly |
Should the file be treated as read-only? |
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
matter_list
x <- struct(first=c(int=1), second=c(double=1))
x$first <- 2L
x$second <- 3.33
x$first
x$second
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.