subset_data | R Documentation |
subset_data can be used on a PupillometryR dataframe to subset the time into relevant chunks. This, ideally should be one of the first runctions run, before anything analytical. Use this to indicate a start and stop time to create a new resized dataframe.
subset_data(data, start = NULL, stop = NULL, rezero = T, remove = T)
data |
a PupillometryR dataframe |
start |
a single number indicating start time of new dataframe |
stop |
a single number indicating end time of new dataframe |
rezero |
logical, whether time should start from zero |
remove |
logical, remove observations outside of start and stop |
a subsetted PupillometryR dataframe
Sdata <- make_pupillometryr_data(data = pupil_data,
subject = ID,
trial = Trial,
time = Time,
condition = Type)
subset_data(Sdata, start = 100, stop = 10000, rezero = TRUE, remove = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.