add_datetime: Adds date and time to a dataframe

Description Usage Arguments Value Examples

View source: R/add_datetime.R

Description

SUPPORTER function: Required for add_daynight function This function adds two columns of date and time to all rows of a given dataframe. The main purpose is to log any new additions of rows to the dataframe

Usage

1

Arguments

df

dataframe

Value

dataframe

Examples

1
2
3
4
5
6
fruit_harvest <- data.frame(apples = c(4,10,12), oranges = c(8,9,10))
add_datetime(fruit_harvest)
##   apples oranges       date     time
## 1      4       8 2015-11-26 23:47:05
## 2     10       9 2015-11-26 23:47:05
## 3     12      10 2015-11-26 23:47:05

hochoy/r_timekeeper documentation built on May 17, 2019, 4:36 p.m.