Re: [R] Hash, variable names restriction

2014-12-19 Thread Jeff Newmiller
df is the name of a function in base R. You have not provided a definition of sample data resembling your real data. In this case I suspect that the source of your problems is that df may not be what you think it is. Learning to use the "str" function may help you. If df is a data frame contai

[R] Hash, variable names restriction

2014-12-18 Thread email
Hi: I have one million names of city and their population and want to make a hash so that by giving key = city, the hash function will return its population. I use the hash package in R as follows: h <- hash(c(as.vector(df$city)), c(as.vector(df$population))) But getting the following error: Err