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

set_fext

Set file extension


Description

This function sets the extension in a file name.

Usage

set_fext(x, ext, all)

Arguments

x

a character or a filename

ext

new file extension

all

replace the entire extension

Value

modified object of the original type

Examples

x <- "data_norm_2011-01-03.txt"
print(set_fext(x, "csv"))

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.