na_as()
returns a NA
value with the same he same class and attributes of
an R object.
This function was made to facilitate assigning NA
s dynamically.
na_as(x)
# S3 method for class 'logical'
na_as(x)
# S3 method for class 'character'
na_as(x)
# S3 method for class 'integer'
na_as(x)
# S3 method for class 'numeric'
na_as(x)
# S3 method for class 'Duration'
na_as(x)
# S3 method for class 'Period'
na_as(x)
# S3 method for class 'difftime'
na_as(x)
# S3 method for class 'hms'
na_as(x)
# S3 method for class 'Date'
na_as(x)
# S3 method for class 'hms'
na_as(x)
# S3 method for class 'POSIXct'
na_as(x)
# S3 method for class 'POSIXlt'
na_as(x)
# S3 method for class 'Interval'
na_as(x)
An atomic vector, provided that
na_as()
has a method for it.
A NA
value with the same class and attributes of x
.