# Filtering epochs 1:5 and time points 1:10 for all subjects and sensor "E45"
data_subset <- pick_data(epochdata, sensor_rg = "E45",
time_rg = 1:10, epoch_rg = 1:5)
head(data_subset)
# \donttest{
# Setting parameters outside the input data range (there is no subject 6 in epochdata)
# results in an error message
try(
pick_data(epochdata, subject_rg = 6,
time_rg = 1:10, epoch_rg = 1:5)
)
# }
Run the code above in your browser using DataLab