x <- c("1", "2", "3", NA)
parse_vector(x, col_integer())
parse_vector(x, col_double())
parse_vector(x, col_character())
parse_vector(x, col_skip())
# Invalid values are replaced with missing values with a warning.
x <- c("1", "2", "3", "-")
parse_vector(x, col_double())
Run the code above in your browser using DataLab