ls.gdsn {gdsfmt} | R Documentation |
Get a list of names for its child nodes.
ls.gdsn(node, include.hidden=FALSE, recursive=FALSE, include.dirs=TRUE)
node |
an object of class |
include.hidden |
whether including hidden variables or folders |
recursive |
whether the listing recurses into directories or not |
include.dirs |
whether subdirectory names should be included in recursive listings |
A vector of characters, or character(0)
if node
is not a
folder.
Xiuwen Zheng
http://github.com/zhengxwen/gdsfmt
cnt.gdsn
, objdesp.gdsn
,
ls.gdsn
, index.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)) ls.gdsn(node) # "x" "y" "z" ls.gdsn(f$root) # "list" ls.gdsn(f$root, recursive=TRUE) # "list" "list/x" "list/y" "list/z" ls.gdsn(f$root, recursive=TRUE, include.dirs=FALSE) # "list/x" "list/y" "list/z" # close the GDS file closefn.gds(f) # delete the temporary file unlink("test.gds", force=TRUE)