Re: Generating a list numnber in string format
- To: mathgroup at smc.vnet.net
- Subject: [mg102626] Re: Generating a list numnber in string format
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Mon, 17 Aug 2009 04:03:58 -0400 (EDT)
On 8/16/09 at 6:40 AM, rich.bis at wanadoo.fr (Richard Trilling) wrote: >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] So, change the above to binnames = Map["bin" <> ToString[#] &, Range[n]]