Hi all, One of the the columns of a data frame has a value such like AAAAS-2001-yy AAAAS-2004-xx FFFFF-2007-SS and so on based on this column (variable) I want subset a data frame where the middle value of this variable is between 2001 to 2004. THE END RESULT THE DATA FRAME WILL BE THIS. AAAAS-2001-yy AAAAS-2004-xx THANK YOU IN ADVANCE [[alternative HTML version deleted]]