Sequence input shared by the sequence verbs
Sequence input
Every verb that reads sequences reads them the same way:
- Long event table
a data.frame with one event per row.
actionnames the state column,actorthe column (or columns) that identify whose events they are,sessionthe column (or columns) that split an actor's events into sessions, andtimethe column that orders them: timestamps in any common date-time format, Unix times, or positions; row order whenNULL. A column namedaction,time,sessionorsession_id(in any case) is used when its argument isNULL;session = FALSEswitches the session detection off. Whentimeis given, a gap of more thantime_thresholdseconds between consecutive events starts a new sequence (default900, fifteen minutes);time_threshold = FALSEkeeps each actor or session in one sequence however long the gaps.timezoneis the time zone of timestamps that carry none (default"UTC"). Events with a missing actor or session raisehypernets_bad_input; a missing action stays in its sequence as a gap. Withoutactorall events form one sequence, announced by the messagehypernets_single_sequence.- Wide data.frame or character matrix
one sequence per row; trailing
NAs end a sequence.- List
one character vector per sequence.
- Model object
a
netobject,netobject_group,tnaorcograph_networkthat carries its sequence data.
These are the conventions of the tna family of packages, and the same call builds the same sequences there.
A data.frame with columns named like an event table (code, state,
user, timestamp, ...) that is passed without action = and has no
action column raises hypernets_long_format (a
hypernets_bad_input): read as wide, its actor ids and times would
silently become states. actor, time or session without an action
column raises hypernets_bad_input.