This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
tutorials:tool_quick_reference_card [2018/06/18 19:19] marcus.williams [M] |
tutorials:tool_quick_reference_card [2019/02/28 22:14] marcus.williams [M] |
||
---|---|---|---|
Line 33: | Line 33: | ||
map1[x,y] = create (; dim=x, dim=y, format=mapping, y1->x1,..,yi->xi,...) | map1[x,y] = create (; dim=x, dim=y, format=mapping, y1->x1,..,yi->xi,...) | ||
map2[x,y] = import (; dataFormat=mapping, y1->x1,..,yi->xi,...) | map2[x,y] = import (; dataFormat=mapping, y1->x1,..,yi->xi,...) | ||
+ | </code> | ||
+ | |||
+ | Note the syntax for one-to-many: | ||
+ | <code> | ||
+ | map1[x,y] = create (; dim=x, dim=y, format=mapping, \ | ||
+ | y1->"x1,x2,x3", ..,yi->xi,...) | ||
</code> | </code> | ||
Line 56: | Line 62: | ||
a[s,t] = sum (b[s->c,t]; dim=stateCOcounty@state) | a[s,t] = sum (b[s->c,t]; dim=stateCOcounty@state) | ||
a[] = sum (b[s,a]; dim=all) | a[] = sum (b[s,a]; dim=all) | ||
+ | </code> | ||
+ | |||
+ | **shrink()** examples: | ||
+ | <code> | ||
+ | a[t] = shrink (b[byrs,a]) | ||
+ | a[t] = shrink (b[byrs,a]; time) | ||
</code> | </code> | ||