View source: R/particle_functions.R
extract_time_window | R Documentation |
Extracts a specified time window from a particle.data object while preserving all relevant tracking information and parameters. Works with both simulation and experimental data.
extract_time_window(data_obj, first_frame, last_frame)
data_obj |
An object of class |
first_frame |
Integer specifying the first frame to include (must be >= 1). |
last_frame |
Integer specifying the last frame to include (must be less than the total number of frames). |
Returns a new particle.data
object containing:
Position data for the selected time window
Velocity data for the selected time window
Angle data if present in original object
Tracking information for the selected frames (experimental data)
Original data type ("simulation" or "experiment")
Particle counts (constant for simulation, time series for experimental)
Number of time steps in the extracted window
Original model parameters (for simulation data)
Original dimension of the output space
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.