Re: [R] using a regular expression

2016-09-12 Thread Jeff Newmiller
If you think you might want to put this function into a package, it would be much better to use gsub instead of passing the job off to an external program, because non-POSIX operating systems (Windows) will be a headache to support. -- Sent from my phone. Please excuse my brevity. On September

Re: [R] using a regular expression

2016-09-11 Thread Marco Silva
Excerpts from Glenn Schultz's message of 2016-09-10 19:23:37 +: > I have a file that for basically carries three datasets of differing > lengths.  To make this a single downloadable file the creator of the > file as used both NUL hex00 and space hex20 to normalize the lengths. > > Below is the

Re: [R] using a regular expression

2016-09-11 Thread David Wolfskill
On Sat, Sep 10, 2016 at 07:23:37PM +, Glenn Schultz wrote: > ... > Below is the function that I am writing.  I am using sed to replace the hex > characters.  First, to get past NUL I use sed to replace hex 00 with hex 20.   > This has worked.  Once the Nul is removed and can successfully parse

[R] using a regular expression

2016-09-11 Thread Glenn Schultz
I have a file that for basically carries three datasets of differing lengths.   To make this a single downloadable file the creator of the file as used both NUL hex00 and space hex20 to normalize the lengths. Below is the function that I am writing.  I am using sed to replace the hex characters