yn_to_numeric | R Documentation |
"Y"
and "N"
to Numeric ValuesMap "Y"
and "N"
to numeric values.
yn_to_numeric(arg)
arg |
Character vector |
1
if arg
equals "Y"
, 0
if arg
equals "N"
, NA_real_
otherwise
Utilities for Formatting Observations:
convert_blanks_to_na()
,
convert_na_to_blanks()
yn_to_numeric(c("Y", "N", NA_character_))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.