factset.protobuf.stach (version 1.0.2)

factset.protobuf.stach.NullValues: factset.protobuf.stach.NullValues

Description

Class defining the NullValues of various data types

Arguments

Format

An R6Class generator object

Public fields

DOUBLE

Null value for DOUBLE data type

FLOAT

Null value for FLOAT data type

INT32

Null value for INT32 data type

INT64

Null value for INT64 data type

STRING

Null value for STRING data type

TIMESTAMP

Null value for TIMESTAMP data type

DURATION

Null value for DURATION data type

Methods

Public methods

Method new()

Usage

factset.protobuf.stach.NullValues$new()

Method clone()

The objects of this class are cloneable with this method.

Usage

factset.protobuf.stach.NullValues$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
# NOT RUN {
nullValues <- factset.protobuf.stach.NullValues$new()

# Null value comparison for Protobuf's String data type.
a <- 'null'
if(nullValues$STRING == a) print("a is the null") else print("a is not a null")

# Null value comparison for Protobuf's Int32 data type.
b <- new(google.protobuf.Int32Value, value = 2147483647)
if(nullValues$INT32 == b$value) print("b is the null") else print("b is not a null")

# Null value comparison for Protobuf's Duration data type.
c <- new(google.protobuf.Duration, seconds = 315576000000, nanos = 999999900)
if(nullValues$DURATION == c) print("c is the null") else print("c is not a null")
# }

Run the code above in your browser using DataCamp Workspace