Displaying 1 result from an estimated 1 matches for "readypath".
2011 Aug 30
2
url prep function (backslash issue)
...ource
this file I need to go
through the
path and replace all the backslashes (\) with forward slashes (/). I usually do
this in MS Word
using the
replace option, however, I'd like to do this in R. Attempting to write a
function to do this runs into
problems:
When I
enter the following:
readyPath
<- function(path){
z <- gsub("\", "/", path)
return(z)
}
I get:
>
readyPath <- function(path){
+ z <- gsub("\", "/", path)
+ return(z)
+ }
+
...meaning
R can't close the sequence (presumably because of the backslash which has
s...