Yes, thanks Steve and also to everyone else for helping me clear this up.
The issue was definitely the existence of other objects named X and Y that
I inadvertently referred to in my command statement. Only when these
objects are removed AND the data frame in question is attached, will the
comman
selecting rows meeting a criterion
Hi,
See comments in line:
On Aug 11, 2009, at 2:45 PM, Jim Bouldin wrote:
>
> No problem John, thanks for your help, and also thanks to Dan and
> Patrick.
> Wasn't able to read or try anybody's suggestions yesterday. Here's
> what
>
Hi,
See comments in line:
On Aug 11, 2009, at 2:45 PM, Jim Bouldin wrote:
No problem John, thanks for your help, and also thanks to Dan and
Patrick.
Wasn't able to read or try anybody's suggestions yesterday. Here's
what
I've discovered in the meantime:
What I did not include yesterday
No problem John, thanks for your help, and also thanks to Dan and Patrick.
Wasn't able to read or try anybody's suggestions yesterday. Here's what
I've discovered in the meantime:
What I did not include yesterday is that my original data frame, called
"data", was this:
X Y V3
1 1 1 0.
/10/09, Jim Bouldin wrote:
> From: Jim Bouldin
> Subject: Re: [R] problem selecting rows meeting a criterion
> To: "John Kane" , r-help@r-project.org
> Received: Monday, August 10, 2009, 7:44 PM
>
> What's wrong is I'm trying to select only those rows in
>
. Any chance you're
>> reading the row.numbers as values?
>>
>> BTW "data" is a reserved word in R and it is good practice not to use it
>> as a variable name.
>>
>> My Results
>>
>> X Y V3
>> 3 3 1 2.236068
>> 4 4 1
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of Jim Bouldin
> Sent: Monday, August 10, 2009 4:44 PM
> To: John Kane; r-help@r-project.org
> Subject: Re: [R] problem selecting rows meeting a criterion
>
>
> 3 3 1 2.236068
> 4 4 1 6.324555
> 5 5 1 5.00
> 6 1 2 8.062258
> 10 5 2 5.656854
> 11 1 3 2.236068
> 12 2 3 9.486833
> 17 2 4 2.236068
> 18 3 4 8.062258
> 24 4 5 5.385165
>
>
> --- On Mon, 8/10/09, Jim Bouldin wrote:
>
> >
X Y V3
3 3 1 2.236068
4 4 1 6.324555
5 5 1 5.00
6 1 2 8.062258
10 5 2 5.656854
11 1 3 2.236068
12 2 3 9.486833
17 2 4 2.236068
18 3 4 8.062258
24 4 5 5.385165
--- On Mon, 8/10/09, Jim Bouldin wrote:
> From: Jim Bouldin
> Subject: [R] problem selecting row
When I try to select only those rows from the following data frame, called
"data", in which X > Y
X Y V3
2 2 1 8.062258
3 3 1 2.236068
4 4 1 6.324555
5 5 1 5.00
6 1 2 8.062258
8 3 2 9.486833
9 4 2 2.236068
10 5 2 5.656854
11 1 3 2.236068
12 2 3 9.486833
14 4 3 8.062258
15 5 3
10 matches
Mail list logo