sub_ext: substitute extension of file x with ext

Description Usage Arguments Value

Description

x is assumed to be a vector of characters which stand for filenames. The extension of the file name is the suffix that occurs after the last dot (.) in every component of x. The substitution is done in two steps. First the existing extension of x is removed using function sans_ext. Then the new extension is added with a dot (.) as separator.

Usage

1
sub_ext(x, ext)

Arguments

x

vector with original file names

ext

new extension to be added

Value

file names with new extensions


charlotte-ngs/rcoursetools documentation built on May 13, 2019, 3:34 p.m.