Description Usage Arguments Value Author(s) References See Also Examples
Get data from a GDS node with subset selection.
1 | readex.gdsn(node, sel=NULL, simplify=c("auto", "none", "force"), .useraw=FALSE)
|
node |
an object of class |
sel |
a list of |
simplify |
if |
.useraw |
use R RAW storage mode if integers can be stored in a byte, to reduce memory usage |
Return an array.
Xiuwen Zheng
http://github.com/zhengxwen/gdsfmt
read.gdsn
, append.gdsn
,
write.gdsn
, add.gdsn
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # cteate a GDS file
f <- createfn.gds("test.gds")
add.gdsn(f, "vector", 1:128)
add.gdsn(f, "matrix", matrix(as.character(1:(10*6)), nrow=10))
f
# read vector
readex.gdsn(index.gdsn(f, "vector"), sel=rep(c(TRUE, FALSE), 64))
# read matrix
readex.gdsn(index.gdsn(f, "matrix"))
readex.gdsn(index.gdsn(f, "matrix"),
sel=list(d1=rep(c(TRUE, FALSE), 5), d2=rep(c(TRUE, FALSE), 3)))
# close the GDS file
closefn.gds(f)
# delete the temporary file
unlink("test.gds", force=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.