Description Usage Arguments Value Examples
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.
1 2 | E4.extras.ButtonPressessPerDay(rdslocation.buttonpress,
ImputeNAs = FALSE, ImputeZeros = FALSE)
|
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? |
Dataframe with a three columns: ID, date, number of button pressess.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.