search for: stem_freq_list

Displaying 1 result from an estimated 1 matches for "stem_freq_list".

Did you mean: stem_freqs_list
2011 Jun 09
2
Coercing Output from mget() into Proper Data Frame
...16 16 28 15 26 Instead, I want something like: [1] bridesmaid 56 In other words, I want the word in the first column and the frequency in the second column. Any help would be very much appreciated. Regards, Na'im library(Rstem) # make a data frame of stems and their frequencies stem_freq_list <- function(freqFile) { stem_dict <- new.env(parent=emptyenv(), hash=TRUE) freq_dist <- read.csv(freqFile,header=TRUE) words <- as.character(freq_dist[,1]) freqs <- as.numeric(freq_dist[,2]) stems <- wordStem(words, language="english") uniq_...