Learn R Programming

spant (version 3.7.0)

trim_paths: Trim a vector of filesystem paths.

Description

Trim a vector of filesystem paths.

Usage

trim_paths(paths, dir = 0, char = 0)

Value

a vector of trimmed paths.

Arguments

paths

vectors of filesystem paths.

dir

number of times to apply the base dirname function.

char

number of characters to trim from the end of each path. Note this is performed after the dir based trimming.