col_date_mdy {campfin}R Documentation

Parse USA date columns in readr functions

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

col_date_mdy()

col_date_usa()

Value

A POSIXct vector.

Examples

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

[Package campfin version 1.0.11 Index]