Description Usage Arguments Value Author(s) References See Also Examples
Assign new dimensions to the data field of a GDS node.
1 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.