From ricardosousa2000 at clix.pt  Tue Oct 25 00:34:00 2011
From: ricardosousa2000 at clix.pt (RMSOPS)
Date: Mon, 24 Oct 2011 15:34:00 -0700 (PDT)
Subject: [Rd] strsplit convert data
In-Reply-To: <1319477336.8217.1.camel@milan>
References: <1319452277838-3932704.post@n4.nabble.com>
	<1319477336.8217.1.camel@milan>
Message-ID: <1319495640961-3934808.post@n4.nabble.com>


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.



[Rd] strsplit convert data
RMSOPS