Converts GPT answers yes/no to logical.
Arguments
- x
(chr) The character vector to parse.
Value
(lgl) The parsed logical vector.
Examples
parse_checkbox("si")
#> [1] 1
parse_checkbox("no")
#> [1] 0
parse_checkbox("NA")
#> [1] 0
parse_checkbox("N/A")
#> [1] 0