View source: R/not-available.R
not_available | R Documentation |
Create NA vectors
not_available(type = "logical", length = 0L)
set_not_available(type, value)
NA_Date_
NA_POSIXct_
NA_POSIXlt_
type |
Type of NA (see details) |
length |
Length of the vector |
value |
A value to return in |
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.
If length is a text it will search for an appropriate match.
A vector of NA
values
x <- not_available("Date", 3)
x
class(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.