search for: regrex

Displaying 1 result from an estimated 1 matches for "regrex".

Did you mean: regex
2013 Jun 08
1
reading a character translation table into R
...n", $charTable); foreach (@entries) { ($desc, $char, $code, $html, $tex) = split(/\s\s+/); } AFAIK, the only function for reading such data is utils::read.fwf, but I have to specify the field widths. I don't know of any function that allows even a simple regrex like this as a sep= argument. - The TeX field contains many backslashed codes that need to be escaped in R. Is it necessarty to manually edit the file to change '\pounds' --> '\\pounds', '\S' --> '\\S', etc. or is there something like raw mode input that wo...