write_assoc | R Documentation |
This function writes an object of class assoc_scores
to a file.
write_assoc(x, file = "", sep = "\t")
x |
An object of class |
file |
Name of the output file. |
sep |
Field separator for the output file. |
Invisibly, x
.
read_assoc()
Other writing functions:
write_conc()
,
write_fnames()
,
write_freqlist()
,
write_tokens()
,
write_txt()
,
write_types()
txt1 <- "we're just two lost souls swimming in a fish bowl, year after year, running over the same old ground, what have we found? the same old fears. wish you were here." flist1 <- freqlist(txt1, as_text = TRUE) txt2 <- "picture yourself in a boat on a river with tangerine dreams and marmelade skies somebody calls you, you answer quite slowly a girl with kaleidoscope eyes" flist2 <- freqlist(txt2, as_text = TRUE) (scores <- assoc_scores(flist1, flist2, min_freq = 0)) write_assoc(scores, "example_scores.tab") (scores2 <- read_assoc("example_scores.tab"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.