add_current_datetime_column: Add current date and time to data frame.

View source: R/add_current_datetime_column.R

add_current_datetime_columnR Documentation

Add current date and time to data frame.

Description

This function adds a new column to a data frame with the current date and time. The name of the new column is a combination of the provided prefix, stage, and "Date_time". If the new column already exists, it will be overwritten.

Usage

add_current_datetime_column(data)

Arguments

data

Data frame.

Value

Data frame with an additional column containing the current date and time.

Examples

## Not run: 
# Create a sample data frame
data <- data.frame(a = 1:5, b = letters[1:5])

# Add date to file name
add_current_datetime_column(data)

## End(Not run)

vvmover documentation built on June 22, 2024, 10:46 a.m.