Skip to contents

A number of an answer of GitHub, such as the followers of a user, or NA when the answer lacks it.

Usage

or_na(x)

Arguments

x

A value of an answer, or NULL.

Value

A number, or NA.

Examples

rghcard:::or_na(12)
#> [1] 12
rghcard:::or_na(NULL)
#> [1] NA