htna-named alias of Nestimate::state_frequencies(). Returns a
tidy data frame with state, count, and proportion columns
summarising the within-network state vocabulary.
Value
A data frame. See Nestimate::state_frequencies() for
details.
Details
Companion to plot_frequencies_htna() (which is htna-aware
via an explicit S3 method). state_frequencies_htna() itself
operates on the raw sequence data and is the data side of the same
family used by the htna tutorials.
Suffixed _htna to avoid clashing with
Nestimate::state_frequencies() when both packages are loaded.
Examples
# \donttest{
data(human_ai)
net <- build_htna(human_ai, actor_type = "actor_type")
#> 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)
state_frequencies_htna(net$data)
#> state count proportion
#> 1 Execute 3258 0.1684
#> 2 Request 3104 0.1604
#> 3 Specify 2920 0.1509
#> 4 Ask 2416 0.1249
#> 5 Frustrate 1829 0.0945
#> 6 Plan 1620 0.0837
#> 7 Check 1298 0.0671
#> 8 Inquire 853 0.0441
#> 9 Refine 792 0.0409
#> 10 Report 705 0.0364
#> 11 Delegate 295 0.0152
#> 12 Repair 257 0.0133
# }
