Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -13,9 +13,9 @@ proc addSumColumn {filename {title "SUM"}} {
|
|||
set sumcol [$m columns]
|
||||
$m add column $title
|
||||
for {set i 1} {$i < [$m rows]} {incr i} {
|
||||
# Fill out a dummy value
|
||||
$m set cell $sumcol $i 0
|
||||
$m set cell $sumcol $i [tcl::mathop::+ {*}[$m get row $i]]
|
||||
# Fill out a dummy value
|
||||
$m set cell $sumcol $i 0
|
||||
$m set cell $sumcol $i [tcl::mathop::+ {*}[$m get row $i]]
|
||||
}
|
||||
|
||||
# Write the CSV out
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
set f [open example.csv r]
|
||||
puts "[gets $f],SUM"
|
||||
while { [gets $f row] > 0 } {
|
||||
puts "$row,[expr [string map {, +} $row]]"
|
||||
puts "$row,[expr [string map {, +} $row]]"
|
||||
}
|
||||
close $f
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue