set_fext: Set file extension

Description Usage Arguments Value Examples

View source: R/set.R

Description

This function sets the extension in a file name.

Usage

1
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

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

filenamer documentation built on May 4, 2018, 9:04 a.m.