[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-web/master] Avoid scientific notation in .csv output.
commit 7041d91e1f8983241e5f6ec63b27502245eccde7
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits