Skip to contents

Describes each control and numeric channel of a recording. For a control, held is the number of observations in which it is active and activations the number of times it becomes active, counting a control that is active in the first observation. A button held for a long time has many observations and one activation; a button tapped repeatedly has many activations.

Usage

# S3 method for class 'replayr_movie'
summary(object, ...)

# S3 method for class 'replayr_poll_stream'
summary(object, ...)

Arguments

object

A replayr_movie or replayr_poll_stream.

...

Not used.

Value

An object of class summary.replayr_movie: a list with the format, the unit of observation, the number of observations and controllers, and two data frames. controls has one row per controller and control (controller, key, name, held, activations); channels has one row per controller and numeric channel (controller, key, name, min, max, missing). Printing shows the controls that are active at least once.

Examples

movie <- read_movie(system.file("extdata", "sample.fm2", package = "replayr"))
summary(movie)
#> fm2 recording sample.fm2: 3600 frames, 2 controllers, 8 controls
#> Controls active at least once:
#>  controller        key   name held activations
#>           1 dpad_right  Right  900          30
#>           1  dpad_left   Left  900          30
#>           1  dpad_down   Down  900          30
#>           1    dpad_up     Up  900          30
#>           1      start  Start    6           6
#>           1     select Select    4           4
#>           1          b      B  900         151
#>           1          a      A  450          91
#>           2 dpad_right  Right  900          30
#>           2  dpad_left   Left  900          30
#>           2  dpad_down   Down  900          30
#>           2    dpad_up     Up  900          30
#>           2      start  Start    6           6
#>           2     select Select    4           4
#>           2          b      B  900         151
#>           2          a      A  450          91
summary(movie)$controls
#>    controller        key   name held activations
#> 1           1 dpad_right  Right  900          30
#> 2           1  dpad_left   Left  900          30
#> 3           1  dpad_down   Down  900          30
#> 4           1    dpad_up     Up  900          30
#> 5           1      start  Start    6           6
#> 6           1     select Select    4           4
#> 7           1          b      B  900         151
#> 8           1          a      A  450          91
#> 9           2 dpad_right  Right  900          30
#> 10          2  dpad_left   Left  900          30
#> 11          2  dpad_down   Down  900          30
#> 12          2    dpad_up     Up  900          30
#> 13          2      start  Start    6           6
#> 14          2     select Select    4           4
#> 15          2          b      B  900         151
#> 16          2          a      A  450          91