User Tools

Site Tools


howtos:workwithdata:odomexample

Odometer Data Format Examples

The following examples will use the array object pop[c,s,t] which contains population data for North America by country, sex, and time where

c is the set country composed of: Canada, US, Mexico

s is the set sex composed of: male, female

t is the sequence time from 2000 to 2004

rowTitles=off

If the rowTitles parameter is set to off, the leftmost column must contain data. The import file may appear as follows:

! Canada male, Canada female
!2000	2001	2002	2003	2004
10	12	14	16	18
12	14	16	18	20

! US male, US female
!2000	2001	2002	2003	2004
100	120	140	160	180
110	130	150	170	190

! Mexico male, Mexico female
!2000	2001	2002	2003	2004
18	20	22	24	26
20	22	24	26	28

rowTitles=on

If the rowTitles parameter is set to on, the leftmost column contains lables. The import file may appear as follows:

! Canada 
!	2000	2001	2002	2003	2004
male	10	12	14	16	18
female	12	14	16	18	20

! US 
!	2000	2001	2002	2003	2004
male	100	120	140	160	180
female	110	130	150	170	190

! Mexico
!	2000	2001	2002	2003	2004
male	18	20	22	24	26
female	20	22	24	26	28

Note that in odometer format, the row titles do not have to match the element names of the indices.

howtos/workwithdata/odomexample.txt · Last modified: 2010/01/19 16:35 by deryn.crockett