Trajectories: 'Trajectories'

View source: R/trajectories.R

TrajectoriesR Documentation

Trajectories

Description

Computse the trajectory for each unique ID.

Usage

Trajectories(value, from, to, id)

Arguments

value

A vector of containing the quantity of interest.

from

A vector of class POSIXct or POSIXt, recording the date and time each subscription commences.

to

A vector of class POSIXct or POSIXt, recording the date and time each subscription ends

id

A vector of character, unique identifier for subscribers that made the transactions (e.g., email addresses, names, subscriber keys).

Value

A list, in which each element is the cumultative value within the subscription period, and the name of the element is the date. The subscription period is determined based on the from and to dates.


NumbersInternational/flipStartup documentation built on Feb. 26, 2024, 5:39 a.m.