as_reliable: Reliable conversion to another data type
Description
Support functions for the convert function. These functions coerces vectors to a new data type, e.g. as.numeric
except that it converts factors to character first.
See convert for more information.
# NOT RUN {x <- as.factor(c("1", "3.5"))
as_reliable_num(x)
x <- as.factor(c("9", "7"))
as_reliable_int(x)
x <- as.factor(c("1", "0"))
as_reliable_lgl(x)
# }