Learn R Programming

IFC (version 0.1.1)

splitf: File Path Decomposition

Description

Helper that will split file name into chunks

Usage

splitf(file = NULL)

Arguments

file

path to file

Value

a named vector with chunks of 'file' dir: full path directory of 'file' parent: first parent directory of 'file' ext: 'file' extension without leading dot short: 'file' with no extension nor dir input: 'file' path as it was provided.