Learn R Programming

sicher (version 0.1.0)

Optional: Create an optional (nullable) type variant

Description

Creates a type that accepts NULL values in addition to the base type.

Usage

Optional(type)

Value

A union type that includes Null

Arguments

type

A sicher_type object

Examples

Run this code
middle_name %:% Optional(String) %<-% NULL
middle_name <- "Marie"  # Also OK

Run the code above in your browser using DataLab