R: loop through data frame extracting subset of data depending on date
问题 I have a large data frame that consists of data that looks something like this: date w x y z region 1 2012 01 21 43 12 3 NORTH 2 2012 02 32 54 21 16 NORTH 3 2012 03 14 32 65 32 NORTH 4 2012 04 65 33 75 21 NORTH : : : : : : : : : : : : : : 12 2012 12 32 58 53 17 NORTH 13 2012 01 12 47 43 23 SOUTH 14 2012 02 87 43 21 76 SOUTH : : : : : : : 25 2012 01 12 46 84 29 EAST 26 2012 02 85 29 90 12 EAST : : : : : : : : : : : : : : I want to extract section of the data that have the same date value, for