I am trying to create numerical prefixes to rownames in R.
What I have is the following:
see png
..and what I would need is the following:
http://www.wordfish.org/uploads/1/2/9/8/12985397/wcger_alldim_chop.csv
The Format is a term-document Matrix or just simply an R Matrix.
I would need the Format to use the program "wordfish" (text mining).
Format should look exactly like this. I was able to create the matrix as can be seen in the link below but fail to add the numerical counts in front of each word as well as assign quotes around the number and the word itself.
Unfortunately,
write.table(wcdata, file = "test.csv", row.names = TRUE, col.names = NA, qmethod = c("double"))
and
write.csv(wcdata, quote = TRUE, row.names=TRUE, "test.csv")
only place quotes around the columns (which is good of course)
Thanks in advance for any help