setdim.gdsn {gdsfmt} | R Documentation |
Assign new dimensions to the data field of a GDS node.
setdim.gdsn(node, valdim, permute=FALSE)
node |
an object of class |
valdim |
the new dimension(s) for the array to be created, which
is a vector of length one or more giving the maximal indices in
each dimension. The values in data are taken to be those in the array
with the leftmost subscript moving fastest. The last entry could be
ZERO. If the total number of elements is zero, gdsfmt does not allocate
storage space. |
permute |
if |
Returns node
.
Xiuwen Zheng
http://github.com/zhengxwen/gdsfmt
read.gdsn
, write.gdsn
,
add.gdsn
, append.gdsn
# cteate a GDS file f <- createfn.gds("test.gds") n <- add.gdsn(f, "int", val=1:24) read.gdsn(n) setdim.gdsn(n, c(6, 4)) read.gdsn(n) setdim.gdsn(n, c(8, 5), permute=TRUE) read.gdsn(n) setdim.gdsn(n, c(3, 4), permute=TRUE) read.gdsn(n) n <- add.gdsn(f, "bit3", val=1:24, storage="bit3") read.gdsn(n) setdim.gdsn(n, c(6, 4)) read.gdsn(n) setdim.gdsn(n, c(8, 5), permute=TRUE) read.gdsn(n) setdim.gdsn(n, c(3, 4), permute=TRUE) read.gdsn(n) # close the GDS file closefn.gds(f) # delete the temporary file unlink("test.gds", force=TRUE)