You could parse the date attribute using the function date_str_custom
within the Generate Attributes
operator to make a new attribute called year
. It would look like this
year = date_str_custom(dateAttribute, "yyyy")
From there, you could use the Filter Examples
operator to exclude examples where year
is 2008 and 2009. The newly released version 6 has some enhancements to this operator to allow this filtering to be done easily. [Edit] - the RapidMiner forum mentions using this operator directly on the dateTime attribute - so it's even easier - no attribute needs to be generated.
You could refer to this blog entry for some more background.