Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: how to take quotation marks away ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48513] Re: [mg48491] how to take quotation marks away ?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 4 Jun 2004 04:49:29 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

ToExpression[("{"<>#<>"}")& /@ Flatten[ data]]

or

ToExpression[Cases[data, x_String:>("{"<>x<>"}"),2]]


Bob Hanlon

> 
> From: "Florian Jaccard" <florian.jaccard at eiaj.ch>
To: mathgroup at smc.vnet.net
> Date: 2004/06/02 Wed AM 04:21:55 EDT
> To: mathgroup at smc.vnet.net
> Subject: [mg48513] [mg48491] how to take quotation marks away ?
> 
> Dear Mathematica-specialists,
> 
>  
> 
> 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}} ?
> 
> I tried ToExpression, but it failed.
> 
>  
> 
> Thanks in advance !
> 
>  
> 
> Greetings
> 
>  
> 
> F.Jaccard
> 
>  
> 


  • Prev by Date: Fourier analysis with additional coefficient for the R-matirx
  • Next by Date: Re: What is zero divided by zero?
  • Previous by thread: Re: how to take quotation marks away ?
  • Next by thread: RE: how to take quotation marks away ?