This function sets the path in a file name.
set_fpath(x, path)
x
a character or a filename
character
filename
path
new path to file
modified object of the original type
x <- "path/data_norm.txt" print(set_fpath(x, "new_path"))