Skip to contents

Generates a dataset representing the smallest bout, consisting of a sequence of inactive periods followed by the smallest active period.

Usage

make_smallest_bout()

Value

A data frame containing the activity counts and bout information for the smallest bout.

Examples

make_smallest_bout()
#>    activity_counts bout non_wearing complete_day                time
#> 1                0    0       FALSE        FALSE 2012-04-07 00:00:30
#> 2                0    0       FALSE        FALSE 2012-04-07 00:01:00
#> 3                0    0       FALSE        FALSE 2012-04-07 00:01:30
#> 4                0    0       FALSE        FALSE 2012-04-07 00:02:00
#> 5              500    1       FALSE        FALSE 2012-04-07 00:02:30
#> 6              500    1       FALSE        FALSE 2012-04-07 00:03:00
#> 7              500    1       FALSE        FALSE 2012-04-07 00:03:30
#> 8              500    1       FALSE        FALSE 2012-04-07 00:04:00
#> 9              500    1       FALSE        FALSE 2012-04-07 00:04:30
#> 10             500    1       FALSE        FALSE 2012-04-07 00:05:00
#> 11             500    1       FALSE        FALSE 2012-04-07 00:05:30
#> 12             500    1       FALSE        FALSE 2012-04-07 00:06:00
#> 13             500    1       FALSE        FALSE 2012-04-07 00:06:30
#> 14             500    1       FALSE        FALSE 2012-04-07 00:07:00
#> 15               0    0       FALSE        FALSE 2012-04-07 00:07:30
#> 16               0    0       FALSE        FALSE 2012-04-07 00:08:00
#> 17               0    0       FALSE        FALSE 2012-04-07 00:08:30
#> 18               0    0       FALSE        FALSE 2012-04-07 00:09:00