Learn R Programming

GGIR (version 2.5-0)

g.part4_extractid: Extracts ID from filename and finds matching rows in sleeplog

Description

Extracts ID from filename and finds matching rows in sleeplog. Function not designed for direct use by GGIR users.

Usage

g.part4_extractid(idloc, fname, dolog, sleeplogidnum, sleeplog)

Arguments

idloc
fname

Full patth to filename

dolog

Boolean to indicate whether to rely on a sleeplog

sleeplogidnum

Should the participant identifier as stored in the sleeplog be interpretted as a number (TRUE=default) or a character (FALSE)?

sleeplog

Sleeplog data.frame passed on from g.part4

Value

List with accid the ID and matching_indices_sleeplog a vector with matching row indices in the sleeplog