missing_codes: Get missing codes from a coding

View source: R/coding.R

missing_codesR Documentation

Get missing codes from a coding

Description

Takes a coding a returns a new coding with all codes that represent a missing value.

Usage

missing_codes(coding)

Arguments

coding

a coding

Value

A coding that contains all missing codes. If no codes are found, returns 'empty_coding()'

Examples

missing_codes(coding(code("Yes", 1), code("No", 0), code("Missing", NA)))
missing_codes(coding(code("Yes", 1), code("No", 0)))

rcoder documentation built on Oct. 6, 2023, 9:06 a.m.