Parse a character vector.
Usage
parse_vector(
x,
collector,
na = c("", "NA"),
locale = default_locale(),
trim_ws = TRUE,
.return_problems = FALSE
)
See also
Other parsers:
col_skip()
,
parse_datetime()
,
parse_factor()
,
parse_guess()
,
parse_logical()
,
parse_number()
Examples
x <- c("1", "2", "3", "NA")
parse_vector(x, col_integer())
#> [1] 1 2 3 NA
parse_vector(x, col_double())
#> [1] 1 2 3 NA