NA_to_F: 'NA' to 'FALSE'

View source: R/misc.R

NA_to_FR Documentation

NA to FALSE

Description

Helpful small function when dealing with non-tidyverse subsetting.

Usage

NA_to_F(x)

Arguments

x

A vector

Value

A vector of the same length as x

Examples

x = c(T, F, NA, T)
NA_to_F(x)

Deleetdk/kirkegaard documentation built on Feb. 28, 2025, 5:04 p.m.