Skip to contents

This dataset contains revenue data over a period of time with rolling revenue calculations.

Usage

purchases

Format

A data frame with 10 rows and 4 variables:

date

Date. The timestamp of the revenue data.

age

Factor. The age range category.

revenue

Numeric. The revenue for the given date.

revenue_roll

Numeric. The rolling revenue calculation.

Examples

data(purchases)
head(purchases)
#> # A tibble: 6 × 4
#>   date       age   revenue revenue_roll
#>   <date>     <fct>   <dbl>        <dbl>
#> 1 2000-01-01 Young   1496.           NA
#> 2 2000-01-02 Young   1103.           NA
#> 3 2000-01-03 Young   1899.           NA
#> 4 2000-01-04 Young    347.           NA
#> 5 2000-01-05 Young    740.           NA
#> 6 2000-01-06 Young   1299.           NA