Learn R Programming

BBmisc (version 1.13)

splitPath: Split a path into components

Description

The first normalized path is split on forward and backward slashes and its components returned as character vector. The drive or network home are extracted separately on windows systems and empty on all other systems.

Usage

splitPath(path)

Value

named list: List with components “drive” (character(1)

and “path” (character(n).

Arguments

path

[character(1)]
Path to split as string