E4.extras.ButtonPressessPerDay: EDA Extra Processing: Get number of button presses per...

Description Usage Arguments Value Examples

Description

This function allows you extract button pressess per participant, per day. It will output a data frame (not an RDS file) that you can use for analyses.

Usage

1
2
E4.extras.ButtonPressessPerDay(rdslocation.buttonpress,
  ImputeNAs = FALSE, ImputeZeros = FALSE)

Arguments

rdslocation.buttonpress

location of folder where button press output is stored (the file is called "button_presses.RDS"). This should end in / .

ImputeNAs

This will create NAs for any days between the first and last day of study data for each participant. If no data = no presses (which is likely the case, use the "ImputeZeros" option to make them zeros instead).

ImputeZeros

Do you want to make the NAs for days without data zeros instead of NA?

Value

Dataframe with a three columns: ID, date, number of button pressess.

Examples

1
2
3
4
5
6
Presses_Per_Day<-
  E4.extras.ButtonPressessPerDay(rdslocation.buttonpress=
                                   paste(system.file(package="E4tools"),
                                   "/extdata/output/presses/",sep=""),
                                             ImputeNAs=TRUE,ImputeZeros=TRUE)
Presses_Per_Day

ekleiman1/E4tools documentation built on July 1, 2019, 9:39 a.m.