From 46d70e0e1f81192e73ae976cdf16138a428f88aa Mon Sep 17 00:00:00 2001 From: aaronshaw Date: Wed, 2 Jul 2014 13:25:21 -0500 Subject: [PATCH 1/1] debugging the command to write output to tsv. inserted a comma and changed it to write.table --- 02-generate_spells.R | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/02-generate_spells.R b/02-generate_spells.R index c2a2188..528091d 100644 --- a/02-generate_spells.R +++ b/02-generate_spells.R @@ -10,10 +10,8 @@ setwd(cur.dir) setwd(spells.data.dir) save(redirect.spells, file="redirect_spells.RData") -write.csv(redirect.spells, file="redirect_spells.tsv", sep="\t" +write.table(redirect.spells, file="redirect_spells.tsv", sep="\t", fileEncoding="UTF-8", row.names=FALSE) library(foreign) write.dta(redirect.spells, file="redirect_spells.dta") - - -- 2.30.2