Re: [R] scanning data in R

2013-04-07 Thread S Ellison
>> I have a data file 'stop' to be scanned in >> R. >> But I want to ignore one specific number '21' there. Putting differently, >> I >> want to get all numbers in the file except 21. Is there any command to >> achieve it? >> See the na.strings argument to scan, and note that it can be a vecto

Re: [R] scanning data in R

2013-04-05 Thread John Kane
--- > From: jamilnase...@gmail.com > Sent: Wed, 3 Apr 2013 10:33:16 +0100 > To: r-help@r-project.org > Subject: [R] scanning data in R > > Dear R-user, > May I seek your suggestion. I have a data file 'stop' to be scanned in > R. > But I want to ignore one specifi

Re: [R] scanning data in R

2013-04-03 Thread Naser Jamil
lf Of Naser Jamil > > Sent: Wednesday, April 03, 2013 4:33 AM > > To: R help > > Subject: [R] scanning data in R > > > > Dear R-user, > > May I seek your suggestion. I have a data file 'stop' to be scanned in > > R. > > But I want to ignore

Re: [R] scanning data in R

2013-04-03 Thread David Winsemius
On Apr 3, 2013, at 2:33 AM, Naser Jamil wrote: > Dear R-user, > May I seek your suggestion. I have a data file 'stop' to be scanned in R. > But I want to ignore one specific number '21' there. Putting differently, I > want to get all numbers in the file except 21. Is there any command to > achie

Re: [R] scanning data in R

2013-04-03 Thread arun
vec<- scan("stop.txt") #Read 635 items vec1<-vec[vec!=21] Ā length(vec1) #[1] 584 any(vec1==21) #[1] FALSE A.K. - Original Message - From: Naser Jamil To: R help Cc: Sent: Wednesday, April 3, 2013 5:33 AM Subject: [R] scanning data in R Dear R-user, May I seek you

Re: [R] scanning data in R

2013-04-03 Thread Robert Baer
On 4/3/2013 4:33 AM, Naser Jamil wrote: > Dear R-user, > May I seek your suggestion. I have a data file 'stop' to be scanned in R. > But I want to ignore one specific number '21' there. Putting differently, I > want to get all numbers in the file except 21. Is there any command to > achieve it? >

Re: [R] scanning data in R

2013-04-03 Thread David L Carlson
; -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Naser Jamil > Sent: Wednesday, April 03, 2013 4:33 AM > To: R help > Subject: [R] scanning data in R > > Dear R-user, > May I seek your suggestion. I have a

[R] scanning data in R

2013-04-03 Thread Naser Jamil
Dear R-user, May I seek your suggestion. I have a data file 'stop' to be scanned in R. But I want to ignore one specific number '21' there. Putting differently, I want to get all numbers in the file except 21. Is there any command to achieve it? ---