From: aaronshaw Date: Wed, 2 Jul 2014 18:25:21 +0000 (-0500) Subject: debugging the command to write output to tsv. inserted a comma and changed it to... X-Git-Url: https://projects.mako.cc/source/redirect-tools/commitdiff_plain/46d70e0e1f81192e73ae976cdf16138a428f88aa?ds=inline;hp=f147e395e2aba333ca5322339a8b1746b2a0b19d debugging the command to write output to tsv. inserted a comma and changed it to write.table --- 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") - -