benmarwick / JSTORr

Simple text mining of journal articles from JSTOR's Data for Research service
Other
71 stars 18 forks source link

another findassocs issue #8

Closed josswhittaker closed 11 years ago

josswhittaker commented 11 years ago

findassocs <- JSTOR_findassocs(unpack, corpus, n = 5, "revolution", corlimit=0.5, plimit=0.05) Error in data.frame(value, row.names = rn, check.names = FALSE, check.rows = FALSE) : row.names should specify one of the variables Error in [.data.frame(x.cor1[, order(-x.cor1[which(rownames(x.cor1) == : undefined columns selected Error in [.data.frame(x.cor1[, order(-x.cor1[which(rownames(x.cor1) == : undefined columns selected Error in [.data.frame(x.cor1[, order(-x.cor1[which(rownames(x.cor1) == : undefined columns selected Error in rbind(deparse.level, ...) : numbers of columns of arguments do not match

benmarwick commented 11 years ago

I've re-written this function and now your function:

findassocs <- JSTOR_findassocs(unpack1grams, nouns, n = 5, "revolution", corlimit=0.5, plimit=0.05)

And get the expected output with no errors. So I think we've fixed this.