Small function to build a consistent path-string based on folder, filename and filetype. The function makes sure that slashes and the dot for the file ending are set correctly (you can supply your folder name either with or without a tailing slash in it. It does not matter.
path(..., ftype = NULL)
A string containing the path combined of folder, filename and filetype
the folders and the file name that should be pasted to a file/folder path
file type
Jan Philipp Dietrich