
Estimate audio and video play counts from response JSONs
estimate_audio_video_plays.RdExtracts audio and video response elements from the responses JSON column.
Media elements are identified by an id value that marks the element as audio
or video. Malformed or missing response JSONs are ignored.
Arguments
- response_df
Tibble. Response data retrieved with get_responses() or read with read_responses(). Must contain
responses,group_id,login_name,login_code,booklet_id, andunit_key. Ifpage_nois present, it is retained in the output.
Value
A tibble with one row per participant, unit, page, and media element.
It contains the session and unit columns, media_id, media_type,
status, n_plays, and media_key. media_key is a namespaced compound
key of the form unit_key__media__media_type__media_id and is intended for
display or export, not as a replacement for the separate key columns.