Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

set_ftime

Set time stamp in a file name


Description

This function sets the time stamp in a file name.

Usage

set_ftime(x, time)

Arguments

x

a character or a filename

time

new time stamp (character or POSIXct)

Value

modified object of the original type

Examples

x <- "data_norm_20110103T093015.txt"
# change the time to 30 seconds past 2:45 p.m.
print(set_ftime(x, "144530"))
# to change the date, time must be specified as well
print(set_ftime(x, "20110505T101500"))

filenamer

Easy Management of File Names

v0.2.3
GPL (>= 3)
Authors
David J. H. Shih
Initial release
2018-05-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.