objdesp.gdsn: Variable description

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/gdsfmt-main.r

Description

Get the descritpion of a GDS node.

Usage

1

Arguments

node

an object of class gdsn.class, a GDS node

Value

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

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 (addfile.gdsn), Integer – integers, Factor – factor values, Logical – logical values (FALSE, TRUE and NA), Real – floating numbers, String – characters, Unknown – unknown type

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, NaN indicates no compression

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

message

if applicable, messages of the GDS node, such like error messages, log information

Author(s)

Xiuwen Zheng

References

http://github.com/zhengxwen/gdsfmt

See Also

cnt.gdsn, name.gdsn, ls.gdsn, index.gdsn

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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)

gdsfmt documentation built on May 2, 2019, 4:41 p.m.