filter_faces: Filtering faces objects.

View source: R/filter_mutate_select_tidy.R

filter_facesR Documentation

Filtering faces objects.

Description

Filters across all the dataframes in a faces object.

Usage

filter_faces(faces, ...)

Arguments

faces

The face object to filter.

...

The filtering condition. The function will delete all the rows in all the dataframes for which the condition is false.

Value

The function returns a filtered "faces" object

Examples


 # Delete unsuccessful trials

 filter_faces(test_faces, success == 1)

 # Take only the first minute of each video analysed

 test_faces %>%
 filter_faces(timestamp < 60)

davidecannatanuig/openFaceR documentation built on Feb. 28, 2024, 7:21 p.m.