getMonth: Get the first day of a month for a vector of dates (as...

Description Usage Arguments Value Examples

Description

Get the first day of a month for a vector of dates (as character strings) Much easier and faster than using substr+paste

Usage

1
getMonth(chr.date)

Arguments

chr.date

A character vector of dates

Value

The months in a date (character) format. E.g., 2016-01-01

Examples

1
getMonth(c('2013-03-12','2013-09-02'))

sameermanek/mmisc documentation built on May 24, 2019, 7:19 a.m.