Learn R Programming

readr (version 0.1.1)

parse_vector: Parse a character vector.

Description

Parse a character vector.

Usage

parse_vector(x, collector)

Arguments

x
Character vector of elements to parse.
collector
Column specification.

Examples

Run this code
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