[R] Omitting a desired line from a table [Beginner Question]

2009-01-25 Thread pfc_ivan
I am a beginner using this R software and have a quick question. I added a file into the R called fish.txt using this line. fish-read.table(fish.txt, head=T, fill=T) The .txt file looks like this. Since it contains like 30 lines of data I will copy/paste first 5 lines. Year GeoArea

Re: [R] Omitting a desired line from a table [Beginner Question]

2009-01-25 Thread Kingsford Jones
see ?subset Or use indexing, which is covered in section 2.7 of an introduction to R (but note that a data frame has 2 dimensions) hth, Kingsford Jones On Sun, Jan 25, 2009 at 3:06 PM, pfc_ivan pfc_i...@hotmail.com wrote: I am a beginner using this R software and have a quick question. I

Re: [R] Omitting a desired line from a table [Beginner Question]

2009-01-25 Thread Jörg Groß
fish[fish$GeoArea == 1 fish$Month == 10] Am 25.01.2009 um 23:06 schrieb pfc_ivan: I am a beginner using this R software and have a quick question. I added a file into the R called fish.txt using this line. fish-read.table(fish.txt, head=T, fill=T) The .txt file looks like this. Since it

Re: [R] Omitting a desired line from a table [Beginner Question]

2009-01-25 Thread Stephan Kolassa
Hi, fish.new - fish[fish$GeoArea==1 fish$Month==10,] HTH, Stephan pfc_ivan schrieb: I am a beginner using this R software and have a quick question. I added a file into the R called fish.txt using this line. fish-read.table(fish.txt, head=T, fill=T) The .txt file looks like this.

Re: [R] Omitting a desired line from a table [Beginner Question]

2009-01-25 Thread Jörg Groß
sorry, there is a comma missing; fish[fish$GeoArea == 1 fish$Month == 10, ] Am 25.01.2009 um 23:33 schrieb Jörg Groß: fish[fish$GeoArea == 1 fish$Month == 10] Am 25.01.2009 um 23:06 schrieb pfc_ivan: I am a beginner using this R software and have a quick question. I added a file