MathGroup Archive 2001

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

Search the Archive

Re: Conversion of text into Mathematica expressions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28187] Re: Conversion of text into Mathematica expressions
  • From: "Paul Lutus" <nospam at nosite.com>
  • Date: Tue, 3 Apr 2001 02:38:05 -0400 (EDT)
  • References: <9a966h$gu3@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"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