User Tools

Site Tools


howtos:workwithdata:export_quick_reference

This is an old revision of the document!


Examples of common export calls are provided below.

It is convenient to set up one or more import directory paths up front. For example:

string $exportDir= $home + "/exportData"

csv format

This code exports a 2-dimensional population TOOL object (by age, by time) to a csv file with age in the rows and time in the columns.

export (refPop[a,ts]; dataFormat=coordinate, fileFormat=text, allCoord=off, delimiter=",", \
			heading=on, file=$exportDir/refPop.csv)

TOOL format

This is an example of exporting to whatIf's native (binary) TOOL file format:

export (customCensusPop[pzce,s,byrs,acc]; format=tool, file=$exportDir/customCensusPop)
howtos/workwithdata/export_quick_reference.1290099748.txt.gz · Last modified: 2010/11/18 17:02 by marcus.williams