work equally as well. I was a bit confused by
the relative complexity of the data frames solution, as it seems like more
steps than necessary.
Thanks again for the input!
-Matt
Again, thanks for the feedback!
--- On Sun, 3/3/13, arun wrote:
> From: arun
> Subject: Re: [R] Help searchin
an wrote:
From: jim holtman
Subject: Re: [R] Help searching a matrix for only certain records
To: "Matt Borkowski"
Cc: r-help@r-project.org
Date: Sunday, March 3, 2013, 8:00 AM
Try this:
dataset <- subset(dataset, grepl("(SAO |FL-15)", REC.TYPE))
On Sun, Mar 3, 2013 at 1:11
p=FALSE])
# user system elapsed
#0.024 0.000 0.025
table(x4$REC.TYPE)
#FL-15 SAO
#59669 60135
A.K.
----- Original Message -
From: jim holtman
To: Matt Borkowski
Cc: "r-help@r-project.org"
Sent: Sunday, March 3, 2013 11:52 AM
Subject: Re: [R] Help searching a
ill cut down significantly on computing
>> time. Is there any truth to that?
>>
>> Also, I found the following solution which works for matching a single
>> condition, but I couldn't quite figure out how to modify it it to search
>> for both my acceptable condi
ble conditions...
>
>> testdata <- testdata[testdata$REC.TYPE == "SAO",,drop=FALSE]
>
> -Matt
>
>
>
>
> --- On Sun, 3/3/13, jim holtman wrote:
>
> From: jim holtman
> Subject: Re: [R] Help searching a matrix for only certain records
> To
SAO 1.58611036 0.97475674
#20 SAO -0.42904914 0.33710578
A.K.
- Original Message -
From: Matt Borkowski
To: r-help@r-project.org
Cc:
Sent: Sunday, March 3, 2013 1:11 AM
Subject: [R] Help searching a matrix for only certain records
Let me start by saying I am rather new to R a
Try this:
dataset <- subset(dataset, grepl("(SAO |FL-15)", REC.TYPE))
On Sun, Mar 3, 2013 at 1:11 AM, Matt Borkowski wrote:
> Let me start by saying I am rather new to R and generally consider myself to
> be a novice programmer...so don't assume I know what I'm doing :)
>
> I have a large matr
Let me start by saying I am rather new to R and generally consider myself to be
a novice programmer...so don't assume I know what I'm doing :)
I have a large matrix, approximately 300,000 x 14. It's essentially a 20-year
dataset of 15-minute data. However, I only need the rows where the column I
8 matches
Mail list logo