I have a Large numeric (46201 elements, 3.3 Mb) in R.
tdm_pairs.matrix <- as.matrix(tdm_pairs)
top_pairs <- colSums(tdm_pairs.matrix)
head(sort(top_pairs, decreasing = T),2)
i know i dont i think i can i just i want
46 42 41 31 30 28
I tried this to split up each:
unlist(strsplit(as.character(top_pairs)," "))
"46" "42" "41" "31" "30" "28"
I'm looking to split each of this up, so the output would be similar to this:
"i" "know" "46"
"i" "dont" "42"