[tor-commits] [metrics-web/master] Avoid scientific notation in .csv output.
karsten at torproject.org
karsten at torproject.org
Mon Sep 30 13:50:50 UTC 2013
commit 7041d91e1f8983241e5f6ec63b27502245eccde7
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Mon Sep 30 15:45:48 2013 +0200
Avoid scientific notation in .csv output.
We estimated exactly 100000 direct users from Russia on September 23 which
R wrote as '1e+05'. This confused the Python in the censorship detector
which thinks this is not an int.
---
rserve/csv.R | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rserve/csv.R b/rserve/csv.R
index 34a3f91..e93b90f 100644
--- a/rserve/csv.R
+++ b/rserve/csv.R
@@ -1,3 +1,5 @@
+options(scipen = 15)
+
export_networksize <- function(path) {
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, user = dbuser, password = dbpassword, dbname = db)
More information about the tor-commits
mailing list