Learn R Programming

readr (version 0.2.2)

parse_vector: Parse a character vector.

Description

Parse a character vector.

Usage

parse_vector(x, collector, na = c("", "NA"), locale = default_locale())

Arguments

x
Character vector of elements to parse.
collector
Column specification.
locale
The locale controls defaults that vary from place to place. The default locale is US-centric (like R), but you can use locale to create your own locale that controls things like the default time zone, encoding, decimal mark, big mark, and day/month names.

Examples

Run this code
x <- c("1", "2", "3", "NA")
parse_vector(x, col_integer())
parse_vector(x, col_double())

Run the code above in your browser using DataLab