not_available: Make not available

View source: R/not-available.R

not_availableR Documentation

Make not available

Description

Create NA vectors

Usage

not_available(type = "logical", length = 0L)

set_not_available(type, value)

NA_Date_

NA_POSIXct_

NA_POSIXlt_

Arguments

type

Type of NA (see details)

length

Length of the vector

value

A value to return in not_available()

Format

An object of class Date of length 1.

An object of class POSIXct (inherits from POSIXt) of length 1.

An object of class POSIXlt (inherits from POSIXt) of length 1.

Details

If length is a text it will search for an appropriate match.

Value

A vector of NA values

Examples

x <- not_available("Date", 3)
x
class(x)


jmbarbone/jordan documentation built on April 1, 2024, 7:46 p.m.