Displaying 2 results from an estimated 2 matches for "strings_003f".
2008 Aug 06
1
Matching a period in grep...
Hi folks,
Can anyone enlighten me as to why I get the following when I search for
".csv" at the end of a string?
> grep("\.csv$","Blah.csv",value=TRUE)
[1] "Blah.csv"
Warning messages:
1: '\.' is an unrecognized escape in a character string
2: unrecognized escape removed from "[\.]csv$"
R reference for regular expressions says
2008 Nov 26
1
How to create a string containing '\/' to be used with SED?
Hi guys,
I've been struggling to find a solution to the following issue:
I need to change strings in .ini files that are given in input to a program
whose output is processed by R. The strings to be changed looks like:
"instance = /home/TSPFiles/TSPLIB/berlin52.tsp"
I normally use Sed for this kind of things. So, inside R I'd like to write
something like:
command <-