Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Arrays - unidentified number of elements

From   Karina Fortuny <>
Subject   st: Arrays - unidentified number of elements
Date   Fri, 7 Feb 2003 13:45:31 -0800 (PST)

I can define an array:

local array "file1 file2 file3 .... fileN"
and loop through the elements.

But I do not want to type all the names (if there are
50 or so; it's possible to make typos, and it's
difficult to audit).

Is it possible to define the array without listing the
elements if the number of elements is known? Is it
possible if the number is not known?

I'm currently using STATA 7, but might be upgrading to

Thank you!

"The soul unfolds itself like a lotus of countess petals." - Kahlil Gibran

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
*   For searches and help try:

© Copyright 1996–2019 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index