Rows represent the source format's observations: video frames, controller
polls, timestamped input events, or game tics; observation_unit() names
the unit of a recording. With an explicit multi-controller polling order,
each row is one cycle through that order. Header video-frame counts remain
in the recording metadata.
Arguments
- movie
A replayr_movie or replayr_poll_stream returned by
read_movie()or a format-specific reader.
Examples
frames <- read_movie(system.file("extdata", "sample.fm2", package = "replayr"))
n_observations(frames)
#> [1] 3600
observation_unit(frames)
#> [1] "frame"
# The rows of an M64 file are controller polls; its header counts the frames.
polls <- read_movie(system.file("extdata", "sample.m64", package = "replayr"))
n_observations(polls)
#> [1] 3600
observation_unit(polls)
#> [1] "controller poll"