Re: [R] how to replace a single backward slash with a double backward slash?

2009-12-13 Thread Sean Zhang
David and William, Thanks for your reply which make me know the concept of escape symbols. As David guessed, I was trying to write a function which will accept a path cut from windows explorer. and as you know windows explorer uses "\". e.g., c:\temp\function.r I originally would like that the f

Re: [R] how to replace a single backward slash with a double backward slash?

2009-12-13 Thread David Winsemius
On Dec 13, 2009, at 5:11 PM, Sean Zhang wrote: Dear R-helpers: Hours ago, I asked how to replace a single forward slash with a double backward slash and recieved great help. Thanks again for all the repliers. In the meantime, I wonder how to replace a single backward slash with a double

[R] how to replace a single backward slash with a double backward slash?

2009-12-13 Thread Sean Zhang
Dear R-helpers: Hours ago, I asked how to replace a single forward slash with a double backward slash and recieved great help. Thanks again for all the repliers. In the meantime, I wonder how to replace a single backward slash with a double backward slash? e.g., I want change "c:\test" into "c:\