[R] Simple look up

PDXRugger J_R_36 at hotmail.com
Fri Aug 22 20:36:21 CEST 2008


WTF mate. you think im about wasting time.  I been seeking a solution for
this for two weeks.  excuse my lack of programming savvy, but this is why i
posted.

bartjoosen wrote:
> 
> Please take a look at the manuals before posting (DO read the posting
> guide!)
> 
> Bart
> PS: yourdataframe[yourdataframe$TAZ==103,2]
> 
> 
> 
> 
> 
> PDXRugger wrote:
>> 
>> So i am hoping this solution is simple, which i beleive it is.  I would
>> like to look up a value in one column of a data set and display the
>> corresponding value in the 2nd column.  For example
>> TAZ    VACANT ACRES
>> 100       45
>> 101       62
>> 102       23
>> 103       64
>> 104       101
>> 105       280
>> 
>> So if i want to find TAZ 103 it would give me 64 as the corresponding
>> value.  Hope you guys can help
>> 
>> Cheers
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Simple-look-up-tp19098777p19113270.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list