User Tools

Site Tools


howtos:workwithdata:export_views

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:workwithdata:export_views [2009/08/07 03:00]
127.0.0.1 external edit
howtos:workwithdata:export_views [2009/11/13 17:41] (current)
marcus.williams
Line 4: Line 4:
  
 <​code>​ <​code>​
-view HHFormRate[hs,​hha,​ts][] 
-view DUDemoRate[m->​pz,​dt,​ts][] 
  
 if $history == false if $history == false
Line 17: Line 15:
 say ("​exporting"​) say ("​exporting"​)
 say (" ​ HHFormRate[hs,​hha,​ts] to ",​$exportDir,"/​HHFormRate.txt"​) say (" ​ HHFormRate[hs,​hha,​ts] to ",​$exportDir,"/​HHFormRate.txt"​)
 +
 export (HHFormRate[hs,​hha,​ts][1];​ file=$exportDir/​HHFormRate.txt,​ \ export (HHFormRate[hs,​hha,​ts][1];​ file=$exportDir/​HHFormRate.txt,​ \
     format=tab, expForm=on, decimals=6, shapeInfo=on)     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)+
 </​code>​ </​code>​
  
-==== Sample files ====+[Include the views.samm entry and .v file structure.] 
  
-Need to configure dokuwiki to allow .t and .v MIME types. 
  
  
howtos/workwithdata/export_views.1249614055.txt.gz · Last modified: 2009/11/13 17:29 (external edit)