[R] scanning data in R

Naser Jamil jamilnaser79 at gmail.com
Wed Apr 3 11:33:16 CEST 2013


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?

--------------------------------------------------------------

b<-scan("F:\\stop.txt")

--------------------------------------------------------------

Many thanks for your kind attention.

Regards,
Jamil.
-------------- next part --------------
15	15	16	15	17	16	16	15	17	15																
16	17	19	17	19	15	16	16	19	18	19	17	17	19	16	17	16	20	15	16	16	15	18	19	17	18
16	18	16	17	21	21	17	15	15	20																
16	20	17	21	19	15	15	15	18	20	16	17	16	15	16	15	16	16	18	16	15	21	20	15	16	17
18	18	20	17	18	18	21	16	15	16	20	17	19	17	18	19	17	21	21	16	15	19	21	15	20	20
16	16	20	18	21																					
21	15	15	19	15	16	15	17	15	21	20	16	15	16	16	18	17	16	18	16	16	16	21	16	15	20
16	19	17	14	17	15	16	15	17	16	15	15	20	15	16	15	15	16	15	20	19	15	15	17	17	15
18	16	15																							
14	21	19	20	15	17	15	15	17	19	15	15	16	18	17	16	16	16	16	18	21	15	16	16	21	19
17	15	16	15	18	16	20	17	16	16	21	15	17	20	21	16	16	17	21	16	16	20	19	17	15	16
18	16	16	15	16	18	19	16	15	21	20	19	20	20	20	16	18	16	15	20						
16	16	18	19	16	18	21	16	21	19	19	17	18	15	18	16	19	17	20	20	16	18	16	19	20	
21	15	16	18	19	16	17	16	15	17	16	15	21	16	15	18	18	15	21	19	16	19	15	15	17	
18	17	16	15	16	18	18	19	17	16	21	16	19	16	15	16	20	17	17	21	21	20	16	17	19	
16	15	19	18	17	15	15	15	19	20	18	21	16	15	15	20	20	17	19	15	19	16	15	15	19	
16	16	19	15	15	19	18	21	15	15	18	21	16	16	17	17	16	15	18	16	15	20	17	20	15	
16	15	15	20	15	16	17	16	17	16	21	17	18	17	15	20	18	16	17	16	17	15	15	17	20	
17	18	15	16	20	16	15	15	18	16	18	16	18	15	16	18	15	17	18	18	16					
15	19	16	19	21	15	20	17	18	15	16	19	17	16	18	18	15	19	15	15	17	15	19	19	16	
20	16	16	15	19	15	16	15	16	15	15	17	20	15	20	16	20	15	17	16	15	16	16	16	17	
16	16	21	21	15	15	17	16	16	19	20	16	16	16	16	15	16	16	20	16	16	20	18	19	15	
21	16	15	15	21	20	20	19	17	15	17	16	18	17	15	16	16	14	19	21	15	17	15	16	19	
20	19	18	15	15	16	18	15	17	20	21	16	19	16	18	16	16	20	21	20	20	18	21	18	15	
21	20	15	21	15	18	16	16	18	17	20	15	15	17	18	20	15	21	19	19	16	20	16	19	15	
15	15	18	21	17	20	18	18	19	16	20	20	18	16	18	15	15	15	15	18	19	15	17	15	16	
15	15	18	16	19	15	19	15	18	15	19	21	21	18	21	16	17	17	16	16	17	16	18	20	16	
20	20	21	16	16	20	15	16	21	19	19	17	19	16	19	21	18	16	15	17	18	21	15	15	16	
16	15	17	20	15	18	17	20	17																	


More information about the R-help mailing list