From aec2d4f87ce6e94d22a6b5003fb30580d0e5ee06 Mon Sep 17 00:00:00 2001 From: mishko Date: Mon, 4 Dec 2017 11:13:50 +0100 Subject: [PATCH] *madrat* change writing of the mappings for the csv format: now it writes with semicolon separated data --- DESCRIPTION | 4 ++-- R/toolConvertMapping.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index eefce433..63c5b3f6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: madrat Type: Package Title: May All Data be Reproducible and Transparent (MADRaT) * -Version: 1.33.0 -Date: 2017-11-21 +Version: 1.33.1 +Date: 2017-12-04 Authors@R: c(person("Jan Philipp", "Dietrich", email = "dietrich@pik-potsdam.de", role = c("aut","cre")), person("Lavinia", "Baumstark", email = "lavinia@pik-potsdam.de", role = "aut"), person("Anastasis", "Giannousakis", email = "giannou@pik-potsdam.de", role = "aut"), diff --git a/R/toolConvertMapping.R b/R/toolConvertMapping.R index eaa58326..f47ba0ae 100644 --- a/R/toolConvertMapping.R +++ b/R/toolConvertMapping.R @@ -29,7 +29,7 @@ toolConvertMapping <- function(name, format="rda", type=NULL, where="mappingfold if(format=="rda") { save(data,file=fname,compress="xz") } else if(format=="csv") { - write.csv(data,fname,sep=",") + write.table(data,fname,sep=";",row.names=FALSE) } else { stop("Unsupported format ",format) }