get_productivity_index: Function that calculates a productivity index (weighted mean)...

View source: R/main.R

get_productivity_indexR Documentation

Function that calculates a productivity index (weighted mean) for a given time period

Description

Function that calculates a productivity index (weighted mean) for a given time period

Usage

get_productivity_index(key, dateFrom, dateTo)

Arguments

key

string provided by RescueTime

dateFrom

string in iso date format "YYYY-mm-DDTHH:MM:ssZ"

dateTo

string in iso date format "YYYY-mm-DDTHH:MM:ssZ"

Value

data.frame with a productivity for each date

Examples

productivity_index <- get_productivity_index("XYZ","2021-04-11T00:00:00Z","2021-04-12T23:59:59Z")

tud-ise/rescuetime-r-wrapper documentation built on May 15, 2023, 6:26 a.m.