[R] subsetting

Val valkremk at gmail.com
Thu Feb 25 03:57:25 CET 2016


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]]



More information about the R-help mailing list