Learn R Programming

omnibus (version 1.2.12)

forwardSlash: Replace backslash with forward slash

Description

This function is helpful for Windows systems, where paths are usually expressed with left slashes, whereas R requires right slashes.

Usage

forwardSlash(x)

Value

Character.

Arguments

x

A string.

Examples

Run this code

forwardSlash("C:\\ecology\\main project")

Run the code above in your browser using DataLab