monthyear_to_date: Convert (and drop) month and year columns to a date column

View source: R/compile.R

monthyear_to_dateR Documentation

Convert (and drop) month and year columns to a date column

Description

Convert month and year to date

Usage

monthyear_to_date(
  df,
  monthcol = "Month",
  yearcol = "Year",
  datecol = "Date",
  dateFormat = "%m %Y"
)

Arguments

df

a dataframe with a column for month and a column for year.

monthcol

length 1 character vector name of the month column.

yearcol

length 1 character vector name of the year column.

datecol

length 1 character vector name of the year column.


capellett/EIAdatasets documentation built on Nov. 3, 2024, 2:04 p.m.