Learn R Programming

fhircrackr (version 0.2.1)

paste_paths: Concatenate paths

Description

Concatenates two strings to path string correctly.

Usage

paste_paths(path1 = "w", path2 = "d", os = "LiNuX")

Arguments

path1

A string specifying the left hand part of the resulting path.

path2

A string specifying the right hand part of the resulting path.

os

A string specifying the operating system you're operating on: windows or linux.

Value

A string containing the concatenated path.

Examples

Run this code
# NOT RUN {
paste_paths("data", "patients")
paste_paths("/data", "patients")
paste_paths("/data/", "patients")
paste_paths("/data", "/patients")
paste_paths("/data/", "/patients/")
paste_paths("data", "patients", "windows")
# }

Run the code above in your browser using DataLab