Re: [R] How to take ID of number > 7.

2012-04-23 Thread Yellow
Thanks for saying. :) This morning I tried out some things with this code, and different variants with it. Works nice. -- View this message in context: http://r.789695.n4.nabble.com/How-to-take-ID-of-number-7-tp4577998p4580364.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] How to take ID of number > 7.

2012-04-23 Thread Steve Lianoglou
Small mistake in my subset example. I mean to remove the `$ID` part at the end so that you can play with the whole subset-ted data.frame, and not just get back the ID column. Instead of this: R> interesting <- subset(DataFile, log2 >= 7)$ID do this: R> interesting <- subset(DataFile, log2 >= 7)

Re: [R] How to take ID of number > 7.

2012-04-23 Thread Yellow
Thanks for the help. :) I was also looking at attach() but this one works perfect. -- View this message in context: http://r.789695.n4.nabble.com/How-to-take-ID-of-number-7-tp4577998p4579982.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] How to take ID of number > 7.

2012-04-22 Thread Steve Lianoglou
On Sun, Apr 22, 2012 at 7:03 AM, Yellow wrote: > I figured out something new that I would like to see if I can do this more > easy with R then Excel. > > I have these huge files with data. > For example: > > DataFile.csv > ID Name log2 > 1 Fantasy 5.651 > 2 New 7.60518 > 3 Finding 8.9532 > 4 Looek

Re: [R] How to take ID of number > 7.

2012-04-22 Thread Jeff Newmiller
Please provide self-contained, reproducible examples. On Sun, 22 Apr 2012, Yellow wrote: O_o This is kinda interesting I have 267 log2 values >= 7. And 295 ID numbers. I don't see any problems in my code also: ID_Log2_Above_7 = DataFile[DataFile$log2 >= 7, c("ID", "Log2"] Missing a

Re: [R] How to take ID of number > 7.

2012-04-22 Thread Yellow
O_o This is kinda interesting I have 267 log2 values >= 7. And 295 ID numbers. I don't see any problems in my code also: ID_Log2_Above_7 = DataFile[DataFile$log2 >= 7, c("ID", "Log2"] # Take ID out. ID_Above_7 = ID_Log2_Above_7$ID # Only numbers, no na or inf. ID_Above_7_NO_NA

Re: [R] How to take ID of number > 7.

2012-04-22 Thread Rui Barradas
Hello, Berend Hasselman wrote > > On 22-04-2012, at 13:03, Yellow wrote: > >> I figured out something new that I would like to see if I can do this >> more >> easy with R then Excel. >> >> I have these huge files with data. >> For example: >> >> DataFile.csv >> ID Name log2 >> 1 Fantasy

Re: [R] How to take ID of number > 7.

2012-04-22 Thread Berend Hasselman
On 22-04-2012, at 13:03, Yellow wrote: > I figured out something new that I would like to see if I can do this more > easy with R then Excel. > > I have these huge files with data. > For example: > > DataFile.csv > ID Name log2 > 1 Fantasy 5.651 > 2 New 7.60518 > 3 Finding 8.9532 > 4 Lo