summarize.gdsn: GDS object Summaries

Description Usage Arguments Value Author(s) References Examples

View source: R/gdsfmt-main.r

Description

Get the summaries of a GDS node.

Usage

1

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

References

http://github.com/zhengxwen/gdsfmt

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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)

closefn.gds(f)

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

Example output

$min
[1] 1

$max
[1] 10

$num_na
[1] 0

$decimal
    int      .1     .01    .001   .0001  .00001 .000001   other 
     10      81       0       0       0       0       0       0 

$min
[1] 1

$max
[1] 10

$num_na
[1] 0

$decimal
            int              .1             .01            .001           .0001 
             10              81               0               0               0 
         .00001         .000001        .0000001       .00000001      .000000001 
              0               0               0               0               0 
    .0000000001    .00000000001   .000000000001  .0000000000001 .00000000000001 
              0               0               0               0               0 
          other 
              0 

$min
[1] 1

$max
[1] 112

$num_na
[1] 2

$decimal
NULL

$min
[1] 0

$max
[1] 112

$num_na
[1] 0

$decimal
NULL

gdsfmt documentation built on Dec. 26, 2020, 6 p.m.