adding rows to a table of data by looking in the table
- To: mathgroup at smc.vnet.net
- Subject: [mg81381] adding rows to a table of data by looking in the table
- From: "Mitch Stonehocker" <mitch at aitoconsulting.com>
- Date: Fri, 21 Sep 2007 03:08:46 -0400 (EDT)
I' m struggling to get something clean and efficient and would like some
help. Given a set of data in the form:
data ={
{x1,1, x1,2, .., x1,n},
{x2,1, x2,2, .., x2,n},
{:, :, =83, :},
{xm,1, xm,2, .., xm,n}
}
where n columns are of fixed width but m rows grow by appending new rows to
the data set. Exactly what gets appended depends on values of specific data
elements in the data set. For example, nextRow If[xm,1>0&&xm,2=A3xm,3,{},{}].
If the nextRow condition is True then appending[data,nextRow] the next
iteration of data should look like:
data ={
{x1,1, x1,2, .., x1,n},
{x2,1, x2,2, .., x2,n},
{:, :, =83, :},
{xm,1, xm,2, .., xm,n},
{, , .., }
}
And so the process goes for some number of steps continuing to add rows to
data.
Thanks for the help,
Mitch
- Follow-Ups:
- Re: adding rows to a table of data by looking in the table
- From: Daniel Lichtblau <danl@wolfram.com>
- Re: adding rows to a table of data by looking in the table