E4.extras.ButtonPressessPerDay {E4tools}R Documentation

EDA Extra Processing: Get number of button presses per participant, per day from the combined "button_pressess.RDS" file

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. You must first extract button pressess using the E4_EDA_Process.part2.ExtractButtonPresses() function.

Usage

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

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

[Package E4tools version 0.1.1 Index]