[R] How to convert "c:\a\b" to "c:/a/b"
David Duffy
David.Duffy at qimr.edu.au
Wed Jun 29 05:02:47 CEST 2005
I couldn't resist adding a more literal answer
unback <- function(x) {
chars <- unlist(strsplit(deparse(x),""))
chars <- chars[-c(1,length(chars))]
paste(gsub("\\\\","/",chars),collapse="")
}
unback("\n")
| David Duffy (MBBS PhD) ,-_|\
| email: davidD at qimr.edu.au ph: INT+61+7+3362-0217 fax: -0101 / *
| Epidemiology Unit, Queensland Institute of Medical Research \_,-._/
| 300 Herston Rd, Brisbane, Queensland 4029, Australia GPG 4D0B994A v
More information about the R-help
mailing list