Re: how to take quotation marks away ?
- To: mathgroup at smc.vnet.net
- Subject: [mg48515] Re: how to take quotation marks away ?
- From: Marcus Stollsteimer <marcus314 at yahoo.com>
- Date: Fri, 4 Jun 2004 04:49:31 -0400 (EDT)
- References: <c9k3op$fe7$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Florian Jaccard wrote: > I have a (long) list of the form {{"42.1,3.3"},{"3.1,4.2"}} > > How can I transform it to obtain {{42.1,3.3},{3.1,4.2}} ? Hi Florian, use ImportString[]: import[list_]:=Map[ImportString[#,"CSV"]&,list,{2}] // Flatten[#,2]& {{"42.1,3.3"}, {"3.1,4.2"}} // import gives: {{42.1, 3.3}, {3.1, 4.2}} Regards, Marcus -- [...] Fasting is a big mistake. Particularly on an empty stomach. -- W. Allen