2

I'm not able to figure out how the undocumented command TemporalData`DropTimes described here works. For example, I have TemporalData like

temp = TemporalData[{{1, 1}, {2, 4}, {3, 9}}]

and want to get rid of the last point, but

TemporalData`DropTimes[temp, 3]

doesn't do anything. Anyone have any ideas, either using DropTimes or otherwise?

Chris K
  • 20,207
  • 3
  • 39
  • 74

1 Answers1

1

You may use TimeSeriesWindow.

TimeSeriesWindow[temp, {1, 2}]

(* TemporalData[Time: 1 to 2 Data points: 2 Paths: 1] *)

TimeSeriesWindow gives the events the fall between the window specified.

Hope this helps.

Edmund
  • 42,267
  • 3
  • 51
  • 143