exist.gdsn {gdsfmt} | R Documentation |
Get a logical vector to show whether the path exists or not.
exist.gdsn(node, path)
node |
an object of class |
path |
the path(s) specifying a GDS node with '/' as a separator |
A logical vector.
Xiuwen Zheng
http://github.com/zhengxwen/gdsfmt
# 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" exist.gdsn(f, c("list", "list/z", "wuw/dj")) # close the GDS file closefn.gds(f) # delete the temporary file unlink("test.gds", force=TRUE)