This is an old revision of the document!
The following is an example of an export view. For further details refer to the documentation on the export tool.
view HHFormRate[hs,hha,ts][] view DUDemoRate[m->pz,dt,ts][] if $history == false say ("This view requires a history.") quit (1) endif string $exportDir $exportDir = $home + "/V1/exportForDemo" say ("exporting") say (" HHFormRate[hs,hha,ts] to ",$exportDir,"/HHFormRate.txt") export (HHFormRate[hs,hha,ts][1]; file=$exportDir/HHFormRate.txt, \ format=tab, expForm=on, decimals=6, shapeInfo=on) say (" DUDemoRateAve[dt,ts] to ",$exportDir,"/DUDemoRateAve.txt") local numNotZero[dt,ts] numNotZero[dt,ts] = sum (boolne (DUDemoRate[m->pz,dt,ts][1], 0); dim=mCatOfpz) local DUDemoRateAve[dt,ts] DUDemoRateAve[dt,ts] = sum (DUDemoRate[m->pz,dt,ts][1]; dim=mCatOfpz) / numNotZero[dt,ts] export (DUDemoRateAve[dt,ts]; file=$exportDir/DUDemoRateAve.txt, \ format=tab, expForm=on, decimals=6, shapeInfo=on)
Need to configure dokuwiki to allow .t and .v MIME types.