tidy_face: Tidy Face A core function of the OpenFaceR routine. It...

View source: R/tidyface.R

tidy_faceR Documentation

Tidy Face A core function of the OpenFaceR routine. It summarise all the columns of a dataframe into a tidy dataset

Description

Tidy Face A core function of the OpenFaceR routine. It summarise all the columns of a dataframe into a tidy dataset

Usage

tidy_face(x, events = TRUE, continuous = TRUE, events_sum = "count",
  ...)

Arguments

x

a faces object

events

include events variables summary

continuous

include countinous variables summary

events_sum

the method for summarising events. This can be "eps" (events per second), "count" or "rate", which is the proportion of time in which events are happening

...

more options to control the summary of continuous variables (see continuous_summarise)

Value

A list of "faces" dataframes

Examples


# Calculate median mei for the four example videos
test_videos %>%
  transform_videos("mei", mei) %>%
  select_videos(mei) %>%
  tidy_face(mean = F, sd = T, median = F)

# Count each Action Unit

test_faces %>%
  select_faces(starts_with("AU")) %>%
  tidy_face(continuous = FALSE, events_sum = "count")


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