summarize.gdsn: GDS object Summaries

View source: R/gdsfmt-main.r

summarize.gdsnR Documentation

GDS object Summaries

Description

Get the summaries of a GDS node.

Usage

summarize.gdsn(node)

Arguments

node

an object of class gdsn.class, a GDS node

Value

A list including

min

the minimum value

max

the maximum value

num_na

the number of invalid numbers or NA

decimal

the count of each decimal (integer, 0.1, 0.01, ..., or other)

Author(s)

Xiuwen Zheng

Examples

# cteate a GDS file
f <- createfn.gds("test.gds")

n1 <- add.gdsn(f, "x", seq(1, 10, 0.1), storage="float")
n2 <- add.gdsn(f, "y", seq(1, 10, 0.1), storage="double")
n3 <- add.gdsn(f, "int", c(1:100, NA, 112, NA), storage="int")
n4 <- add.gdsn(f, "int8", c(1:100, NA, 112, NA), storage="int8")

summarize.gdsn(n1)
summarize.gdsn(n2)
summarize.gdsn(n3)
summarize.gdsn(n4)

# close the file
closefn.gds(f)

# delete the temporary file
unlink("test.gds", force=TRUE)

zhengxwen/gdsfmt documentation built on Nov. 19, 2024, 1:03 p.m.