search for: tot_no_ent

Displaying 1 result from an estimated 1 matches for "tot_no_ent".

2011 Nov 02
1
Generate a sequence of vectors of different length
Hi everyone After the following setup sector=2 # Define Number of Sectors sectors=LETTERS[seq( from = 1, to = sector )] # Name sectors No_ent=round(3/runif(sector)) # Number of entities per sector #Tot_No_ent=sum(No_ent) Goal is to get a List like (A1, A2, A3, B1, B2, B3, B4) where A is denoting an industrial sector and then a numbered sequence of companies within the sector. The step I am missing is how to generate a sequence of vectors (one for each sector) with individual length being determ...