[Rd] strsplit convert data
    RMSOPS 
    ricardosousa2000 at clix.pt
       
    Tue Oct 25 00:34:00 CEST 2011
    
    
  
Hello
   To be more specific, my problem is here
 Line <-dataset $ Items [i]
   print (line)
   in.s <- strsplit (line, '')
 I am reading lines from a file
 Line 1 A, B, C, D, G
 Line 2 A, C, E,
 ...
 line n F, G
 the problem is that I can not make the split of the comma, so I can not get
the
 output
      A B C D E F G O
 [1,] 1 1 1 1 1 0 0 0
 [2,] 1 0 1 0 1 0 0 1
 [n] 0 0 0 0 0 1 1 0
--
View this message in context: http://r.789695.n4.nabble.com/strsplit-convert-data-tp3932704p3934808.html
Sent from the R devel mailing list archive at Nabble.com.
    
    
More information about the R-devel
mailing list