add_yearday: Add yearday and year columns to a data.frame

View source: R/add_yearday.R

add_yeardayR Documentation

Add yearday and year columns to a data.frame

Description

Add yearday and year columns to a data.frame

Usage

add_yearday(data, date_col, datetime = F, keep_date_col = T)

Arguments

data:

a data.frame with a date or datetime column

date_col:

fa quoted name of the date or datetime column

datetime:

should the date_col be parsed as a datetime?

keep_date_col:

should the parsed date_col be kept?

Value

A data.frame with yearday and year columns

Examples

add_yearday(data.frame(today()))

ecodata-technology/ecodatamisc documentation built on Feb. 13, 2024, 11:54 a.m.