na2false {clinpubr} | R Documentation |
Replace NA values with FALSE
Description
Replace NA
values with FALSE
in logical vectors.
For other vectors, the behavior relies on R's automatic conversion rules.
Usage
na2false(x)
Arguments
x |
A vector. |
Value
A vector with NA
values replaced by FALSE
.
Examples
na2false(c(TRUE, FALSE, NA, TRUE, NA))
na2false(c(1, 2, NA))
[Package clinpubr version 1.0.1 Index]