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
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
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
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
Hello everybody!
I'm using Perl regular Expression for find pattern in my data set.
The pattern is: NaQxy, where a=E, F, G or H and xy != 29. I have tried this:
pattern - ^N[E-H]Q[0-9]{2,2}
index - grep(pattern, X, perl=T) #where X is my vector
But the problem is the xy should not be 29. How
Do it in two steps:
x - c(NEQ23, NHQ29, NGQ00, NFQ123)
pat - N[E-H]Q[0-9]{2}
bad - N[E-H]Q29
all - grep(pat, x, perl=TRUE)
x29 - grep(bad, x, perl=TRUE)
setdiff(all, x29)
[1] 1 3 4
On Tue, Feb 24, 2009 at 7:57 AM, Katrine Damgaard
katrine.damga...@kunnskapssenteret.no wrote:
Hello
6 matches
Mail list logo