simple_date: simple_date

View source: R/simple_date.R

simple_dateR Documentation

simple_date

Description

This function converts specified datetime fields into date fields.

Usage

simple_date(df = NULL, datefields = NULL)

Arguments

df

default is NULL. This is the dataframe with datetime fields you want to modify.

datefields

default is NULL. This is a vector of datetime fields that you want to overwrite with simpler, date fields (i.e. 'YYYY-MM-DD').

Value

returns a data.frame with the updated fields.

Note

The number of items in oldFields and newFields must be identical, and the order matters in that newFields[3] will replace oldFields[3].

Author(s)

Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca

See Also

Other datesAndTimes: vali_dates()


Maritimes/Mar.utils documentation built on Feb. 12, 2024, 11:38 p.m.