[R] Subsetting between two values (into a range)????

arun smartpink111 at yahoo.com
Mon Mar 10 15:47:00 CET 2014


Hi,
If 'dat' is the dataset:
Try

subset(dat, Start < MapInfo & End > MapInfo)

A.K.


Dear All, 

I want to subset a column (MapInfo in the attached photo) in csv
 file if its values be ranged between values in two other columns (Start
 and End in the attached photo) using R 3.0.1. Thank you in advance for 
all nice guides. 

M.H. Banabazi



More information about the R-help mailing list