count_events: Count events.

count_eventsR Documentation

Count events.

Description

Function to count how many differnet times a facial event occurs.

Usage

count_events(x, sensitivity = 5)

Arguments

x

the variable for which to count events (must have two levels: 0 and 1).

sensitivity

how many frames might have the software missed and still considered the event as one.

Value

The number of occurred events.

Examples

#Counting John blinkings
count_events(john$AU45_c)

# Using a lower sensitivity to make sure each each blink is counted as one
count_events(john$AU45_c, sensitivity = 0)
# There will be higher risk of machine error


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