Re: Generating a list numnber in string format
- To: mathgroup at smc.vnet.net
- Subject: [mg102619] Re: [mg102598] Generating a list numnber in string format
- From: "Elton Kurt TeKolste" <tekolste at fastmail.us>
- Date: Mon, 17 Aug 2009 04:02:41 -0400 (EDT)
- References: <200908161040.GAA01235@smc.vnet.net>
Conversion only In[4]:= ToString /@ Range[5] Out[4]= {"1", "2", "3", "4", "5"} Incorporation into longer names (one) In[9]:= ("v" <> #) & /@ (ToString /@ Range[5]) Out[9]= {"v1", "v2", "v3", "v4", "v5"} Incorporation into longer names (two) In[10]:= Table["v" <> ToString[i], {i, 5}] Out[10]= {"v1", "v2", "v3", "v4", "v5"} In[11]:= Head /@ % Out[11]= {String, String, String, String, String} On Sun, 16 Aug 2009 06:40 -0400, "Richard Trilling" <rich.bis at wanadoo.fr> wrote: > Hello, > > I would like to be able generate a list of numbers from 1 to n string > format. > > binlist={"1","2","3","4",..."n"} > > I need to use them in this format to map into a list of variable names > > binnames = Map["bin" <> # &, binlist] > > > Regards, Kurt Tekolste
- References:
- Generating a list numnber in string format
- From: "Richard Trilling" <rich.bis@wanadoo.fr>
- Generating a list numnber in string format