col_date_mdy: Parse USA date columns in readr functions

Description Usage Value Examples

View source: R/col-date-mdy.R

Description

Parse dates with format MM/DD/YYYY. This function simply wraps around readr::col_date() with the format argument set to "%m/%d/%Y". Many US campaign finance datasets use this format.

Usage

1
2
3

Value

A POSIXct vector.

Examples

1
readr::read_csv(file = "x\n11/09/2016", col_types = readr::cols(x = col_date_mdy()))

campfin documentation built on April 13, 2021, 1:07 a.m.