Message-ID: <48D9646C.2050504@stats.uwo.ca>
Date: 2008-09-23T21:49:32Z
From: Duncan Murdoch
Subject: How to convert backslash to slash?
In-Reply-To: <Pine.GSO.4.61.0809231552560.18040@bayes>
On 23/09/2008 4:00 PM, Shengqiao Li wrote:
> How to use sub, gsub, etc. to replace "\" in a string to "/"?
>
> For example,convert "C:\foo\bar" to "C:/foo/bar".
If those are R strings, there are no backslashes in the first one. It
has a formfeed and a backspace in it.
Duncan Murdoch