cnt.gdsn {gdsfmt} | R Documentation |
Return the number of child nodes for a GDS node.
cnt.gdsn(node, include.hidden=FALSE)
node |
an object of class |
include.hidden |
whether including hidden variables or folders |
If node
is a folder, return the numbers of variables in the folder
including child folders. Otherwise, return 0.
Xiuwen Zheng
http://github.com/zhengxwen/gdsfmt
objdesp.gdsn
, ls.gdsn
,
index.gdsn
, delete.gdsn
,
add.gdsn
# cteate a GDS file f <- createfn.gds("test.gds") # add a list to "test.gds" node <- add.gdsn(f, name="list", val=list(x=c(1,2), y=c("T","B","C"), z=TRUE)) cnt.gdsn(node) # 3 # close the GDS file closefn.gds(f) # delete the temporary file unlink("test.gds", force=TRUE)