MathGroup Archive 2001

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

Search the Archive

Re: Conversion of text into Mathematica expressions


"Max Ulbrich" <ulbrich at biochem.mpg.de> wrote in message
news:9a966h$gu3 at smc.vnet.net...
> Hi,
>
> does anybody know if there is a possibility to convert text into
> expressions?
> I have something like
>
> {"2.5","3.5"...}
>
> and want to convert it to
>
> {2.5,3.5...}
>
> How can I do that?

data = {"1","2","3","4","5"}

Map[ToExpression,data]

{1,2,3,4,5}

--
Paul Lutus
www.arachnoid.com




  • Prev by Date: RE: Conversion of text into Mathematica expressions
  • Next by Date: Re: Plotting a function of x and y
  • Previous by thread: RE: Conversion of text into Mathematica expressions
  • Next by thread: Re: Conversion of text into Mathematica expressions