Skip to contents

A tidy two-column lookup tagging every simplified code in human_ai with its actor type. Ready to pass as node_groups to build_htna() (Form 3b in the vignette("input-formats", package = "htna")).

Usage

human_ai_codebook

Format

A data frame with 12 rows and 2 columns:

code

Character. Simplified action code (one of the 12 Human + AI codes in human_ai).

actor_type

Character. "Human" or "AI".

Source

Derived from human_simplified and ai_simplified; see data-raw/human_ai.R for the build script.

Examples

# \donttest{
data(human_ai, human_ai_codebook)
net <- build_htna(human_ai, node_groups = human_ai_codebook)
#> Warning: A network with one long sequence is not recommended and can't be validated using bootstrap and other confirmatory testings.
#> Metadata aggregated per session: ties resolved by first occurrence in 'session_date' (1 sessions), 'cluster' (42 sessions), 'actor_type' (24 sessions)
plot_htna(net)

# }