On Apr 20, 2012, at 3:00 PM, Jeff Newmiller wrote:
I think
x[x>7.5]
> y <-c(1,1)
> y[y>2]
numeric(0)
> y[which(y>2)]
numeric(0)
gives more unsurprising results when none of the data meets the
criteria than
x[which(x>7.5)]
I don't see a difference.
Look at:
> x <-c(NA, 1)
> x[which(
I think
x[x>7.5]
gives more unsurprising results when none of the data meets the criteria than
x[which(x>7.5)]
does.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#.
On Apr 20, 2012, at 9:49 AM, Yellow wrote:
I now filtered the Na and Inf out of my data.
And the number is exactly the same als the output from the excel file.
Thanks everyone. :)
Now I can finish my work.
In the future it might be safer to use subset() or perhaps
x[which(x>7.5)]. That wou
I now filtered the Na and Inf out of my data.
And the number is exactly the same als the output from the excel file.
Thanks everyone. :)
Now I can finish my work.
--
View this message in context:
http://r.789695.n4.nabble.com/Sort-out-number-on-value-tp4573467p4574026.html
Sent from the R he
Hi
Without data it is only a guess.
>
> I found out something strange when I used the same thing on another data
> file.
>
> In a excel file I have same data too and there I asked in a certain
column
> what values where above the 7.5. Result: 206.
> Now I have done the same thing in R and I g
I see the problem.
There are 400, but there are Na and Inf is there for like 1/2, and I need to
get those out.
Think I need to filter those out.
Now that would make sense. LoL
--
View this message in context:
http://r.789695.n4.nabble.com/Sort-out-number-on-value-tp4573467p4573905.html
Sent
I found out something strange when I used the same thing on another data
file.
In a excel file I have same data too and there I asked in a certain column
what values where above the 7.5. Result: 206.
Now I have done the same thing in R and I get as result: 400.
My code:
# Find values above 7.
Thanks everyone. :)
--
View this message in context:
http://r.789695.n4.nabble.com/Sort-out-number-on-value-tp4573467p4573512.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mail
HI,
x[x>20]
Regards.
- Mail original -
De : Yellow
À : r-help@r-project.org
Cc :
Envoyé le : Vendredi 20 avril 2012 19h26
Objet : [R] Sort out number on value
Can anyone help me maybe with a question I can seem to find an answer on.
I have this: x = c(1, 5, 70, 53, 7, 29, 75, 37, 3
9 matches
Mail list logo