get_single_data: Function to retrieve a single data set

Description Usage Arguments Value Examples

View source: R/main.R

Description

Function to retrieve a single data set

Usage

1
get_single_data(session_id, rescue_time_api_key, scope, all_data)

Arguments

session_id

string session id of the participant

rescue_time_api_key

string rescue time api key of the participant

scope

string rescue time scope (usually 'Activity')

all_data

data.frame the data of all participants

Value

data.frame containing only the individuals data enriched with detailed screen time data

Examples

1
2
3
all_data <- read.csv("all_data.csv")
data <- get_single_data("1", "ABC", "Activity", all_data)
write.csv(data, "single_data.csv", na = "", row.names = FALSE)

tud-ise/wellbeing-study-helper documentation built on Dec. 23, 2021, 1:02 p.m.