Re: Generating a list numnber in string format
- To: mathgroup at smc.vnet.net
 - Subject: [mg102633] Re: [mg102598] Generating a list numnber in string format
 - From: DrMajorBob <btreat1 at austin.rr.com>
 - Date: Mon, 17 Aug 2009 04:05:14 -0400 (EDT)
 - References: <200908161040.GAA01235@smc.vnet.net>
 - Reply-to: drmajorbob at bigfoot.com
 
n = 7;
binlist = ToString /@ Range@n
{"1", "2", "3", "4", "5", "6", "7"}
or
binlist = Array[ToString, n]
{"1", "2", "3", "4", "5", "6", "7"}
or
binlist = Table[ToString@i, {i, 3, 20, 4}]
{"3", "7", "11", "15", "19"}
or
binlist = ToString /@ Range[3, 20, 4]
{"3", "7", "11", "15", "19"}
Bobby
On Sun, 16 Aug 2009 05:40:58 -0500, 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]
>
>
>
-- 
DrMajorBob at bigfoot.com
- References:
- Generating a list numnber in string format
- From: "Richard Trilling" <rich.bis@wanadoo.fr>
 
 
 - Generating a list numnber in string format