parse_vector {readr} | R Documentation |
Parse a character vector.
parse_vector(x, collector, na = c("", "NA"), locale = default_locale())
x |
Character vector of elements to parse. |
collector |
Column specification. |
na |
Character vector of strings to use for missing values. Set this
option to |
locale |
The locale controls defaults that vary from place to place.
The default locale is US-centric (like R), but you can use
|
x <- c("1", "2", "3", "NA") parse_vector(x, col_integer()) parse_vector(x, col_double())