getExtension {utilitiesR}R Documentation

get the extension of a path

Description

get the extension of a path

Usage

  getExtension(path, preserveCase = FALSE)

Arguments

path

the path to get the extension of

preserveCase

boolean, default FALSE. Whether or not to preserve the case of the extension. If FALSE, returns lowercase.

Value

the extension of the path, being the text from the last '.' to the end. If no extension, returns ”.

See Also

Other file: createFilename, dir.browse, file.browse, getFilename, getUniqueFilename, makeIfNotExists


[Package utilitiesR version 1.6.2 Index]