>> 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
---
> 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
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
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
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
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?
>
; -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
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?
---
8 matches
Mail list logo