Displaying 1 result from an estimated 1 matches for "wfreq1".
Did you mean:
freq1
2010 Nov 06
1
Hashing and environments
...;m guessing that the problem is that the indexing of the wfreqs vector in my wfreq() function is not happening inside the actual lexicon's environment. However, I have not been able to figure out the proper call to get the lookup to happen inside the lexicon's environment. I've tried
wfreq1 <- function(lexicon,word) {
return(eval(wfreqs[word],envir=lexicon at e))
}
which I'd thought should work, but this gives me an error:
> wfreq1(my.lexicon,'the')
Error in eval(wfreqs[word], envir = lexicon at e) :
object 'wfreqs' not found
Any advice would be much a...