pastep: Concatenate paths

pastepR Documentation

Concatenate paths

Description

Concatenates two or more strings to a path string correctly.

Usage

pastep(..., list_of_paths = NULL, ext = NULL)

Arguments

...

A Set of Path Strings. Only works if list_of_paths is NULL

list_of_paths

Either a vector or a list of paths strings

ext

An Extension to add at the end of the path

Value

A Character of length one, the combined path.

Examples

pastep('a', 'b', 'c', 'd')
pastep(list_of_paths = list(paste0('/', letters, '/'), as.character(1:13)))
pastep(list_of_paths = c(letters, as.character(1:13)))
pastep(list_of_paths = c(letters, as.character(1:13)), ext = '.txt')
pastep(list_of_paths = c(letters, as.character(1:13)), ext = '_dat.txt')

POLAR-fhiR/fhircrackr documentation built on Dec. 24, 2024, 3:06 a.m.