is.incalogical.Rd
Boolean vectors in INCA are stored internally as 0/1 and are changed to "True"/blank when exported. These functions identify such a variable as Boolean and can coerce it to such.
is.incalogical(x) incalogical2logical(x)
x | vector (potentially logical) |
---|
is.incalogical
returns TRUE
if the vector
is logical according to INCA:s internal rules, FALSE
otherwise.
incalogical2logical
returns a logical vector if x
can be coerced to such.
It is common that check boxes are blanks by default but that this should
be interpreted as TRUE
. There are however some uncommon cases
were the boxes are marked with "False" for FALSE
.
We can therefore not be certain of the meaning of a blank value.
These will therefore be treated as NA
.
#> [1] TRUE#> [1] TRUE#> [1] FALSE#> [1] TRUE