Learn R Programming

IFC (version 0.2.1)

splitf: File Path Decomposition

Description

Helper that will split file name into chunks

Usage

splitf(file = NULL)

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.

Arguments

file

path to file