Description Usage Arguments Value Author(s) References See Also Examples
Remove the attribute(s) of a GDS node.
1 | delete.attr.gdsn(node, name)
|
node |
an object of class |
name |
the name(s) of an attribute |
None.
Xiuwen Zheng
http://github.com/zhengxwen/gdsfmt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # cteate a GDS file
f <- createfn.gds("test.gds")
node <- add.gdsn(f, "int", val=1:10000)
put.attr.gdsn(node, "missing.value", 10000)
put.attr.gdsn(node, "one.value", 1L)
put.attr.gdsn(node, "string", c("ABCDEF", "THIS"))
put.attr.gdsn(node, "bool", c(TRUE, TRUE, FALSE))
f
get.attr.gdsn(node)
delete.attr.gdsn(node, c("one.value", "bool"))
get.attr.gdsn(node)
# 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.