exist.gdsn: Return whether the path exists or not

View source: R/gdsfmt-main.r

exist.gdsnR Documentation

Return whether the path exists or not

Description

Get a logical vector to show whether the path exists or not.

Usage

exist.gdsn(node, path)

Arguments

node

an object of class gdsn.class, a GDS node

path

the path(s) specifying a GDS node with '/' as a separator

Value

A logical vector.

Author(s)

Xiuwen Zheng

See Also

ls.gdsn, index.gdsn

Examples

# 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)

zhengxwen/gdsfmt documentation built on April 11, 2024, 3:19 a.m.