objdesp.gdsn {gdsfmt} | R Documentation |
Get the description of a GDS node.
objdesp.gdsn(node)
node |
an object of class |
Returns a list:
name |
the variable name of a specified node |
fullname |
the full name of a specified node |
storage |
the storage mode in the GDS file |
trait |
the description of data field, like "Int8" |
type |
a factor indicating the storage mode in R:
Label – a label node,
Folder – a directory,
VFolder – a virtual folder linking to another GDS file,
Raw – raw data ( |
is.array |
indicates whether it is array-type |
dim |
the dimension of data field |
encoder |
encoder for compressed data, such like "ZIP" |
compress |
the compression method: "", "ZIP.max", etc |
cpratio |
data compression ratio, |
size |
the size of data stored in the GDS file |
good |
logical, indicates the state of GDS file, e.g., FALSE if the virtual folder fails to link the target GDS file |
hidden |
logical, |
message |
if applicable, messages of the GDS node, such like error messages, log information |
param |
the parameters, used in |
Xiuwen Zheng
http://github.com/zhengxwen/gdsfmt
cnt.gdsn
, name.gdsn
,
ls.gdsn
, index.gdsn
# cteate a GDS file f <- createfn.gds("test.gds") # add a vector to "test.gds" node1 <- add.gdsn(f, name="vector1", val=1:10000) objdesp.gdsn(node1) # add a vector to "test.gds" node2 <- add.gdsn(f, name="vector2", val=1:10000, compress="ZIP.max", closezip=FALSE) objdesp.gdsn(node2) # add a character to "test.gds" node3 <- add.gdsn(f, name="vector3", val=c("A", "BC", "DEF"), compress="ZIP", closezip=TRUE) objdesp.gdsn(node3) # close the GDS file closefn.gds(f) # delete the temporary file unlink("test.gds", force=TRUE)