[R] Simple look up

bartjoosen bartjoosen at hotmail.com
Fri Aug 22 09:54:19 CEST 2008


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-tp19098777p19103028.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list