Learn R Programming

convdistr (version 1.6.1)

NA_DISTRIBUTION: Factory for a NA distribution object

Description

Returns an NA distribution object that always return NA_real_ This is useful to handle NA. By default only one dimension rvar is produced, but if several names are provided more columns will be added to the return matrix

Usage

new_NA(p_dimnames = "rvar")

Value

An object of class DISTRIBUTION, NA

Arguments

p_dimnames

A character that represents the the names of the dimensions. By default only one dimension with name rvar

Author

John J. Aponte

Examples

Run this code
myDistr <- new_NA(p_dimnames = "rvar")
myDistr$rfunc(10)

Run the code above in your browser using DataLab