select_faces: Selecting variables in faces objects.

View source: R/filter_mutate_select_tidy.R

select_facesR Documentation

Selecting variables in faces objects.

Description

Select a subset of the variables across a faces object. It always return timestamp, frame and success. The function is an openfacer equivalent of dplyr::select.

Usage

select_faces(faces, ...)

Arguments

faces

A "faces" object.

...

The names or the numbers of the selected variables, or an expression that point to them. The operator "-" exclude the variables.

Value

A "faces" object with the selected variables, timestamp, frame and success.

Examples


# Select the AU related to smiling
select_faces(test_faces, AU12_c, AU06_c)

# Create a mei variable, select it and summarise
test_faces %>%
transform_faces("mei", mei) %>%
select_faces(mei) %>%
tidy_face()

# Select all the AU variables
test_faces %>%
select_faces(starts_with("AU"))


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