Displaying 1 result from an estimated 1 matches for "tp3470964p3471386".
2011 Apr 24
2
help with "\" in strings
I would like to create a "\%" that can be written to a file as I am writing
a procedure to output to latex.
I can't create a "\%" and it is driving me crazy.
--------------------------------------
x = "This is a test % string"
gsub ("%", "\\%", x)
fileConn<-file("c:/biostats/test.txt")
writeLines(x, fileConn)
close(fileConn)