| num_thread | R Documentation |
A thread is defined as a message instance having more than 1 participants (i.e., num_discussants > 1).
num_thread(mbox_df)
is_thread(mbox_df)
mbox_df |
Tibble mbox_df object. |
num_thread
See example below.
Tibble data_frame (mbox_df) for input mbox file will be returned.
JooYoung Seo, jooyoung@psu.edu
Soyoung Choi, sxc940@psu.edu
# Changing working directory to temp for the demonstration purpose only.
withr::with_tempdir(code = {
library(mboxr)
# Feeding an mbox file through read_mbox function:
test <- system.file("extdata", "test1.mbox", package = "mboxr")
data <- read_mbox(mbox = test, file = "output.rds")
# Count the number of threads (i.e., message instance having num_discussants > 1).
num_thread(data)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.