num_thread: Counting the number of email thread.

View source: R/thread.R

num_threadR Documentation

Counting the number of email thread.

Description

A thread is defined as a message instance having more than 1 participants (i.e., num_discussants > 1).

Usage

num_thread(mbox_df)

is_thread(mbox_df)

Arguments

mbox_df

Tibble mbox_df object.

Details

num_thread

See example below.

Value

Tibble data_frame (mbox_df) for input mbox file will be returned.

Author(s)

JooYoung Seo, jooyoung@psu.edu

Soyoung Choi, sxc940@psu.edu

Examples


# 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)
})



jooyoungseo/mboxr documentation built on Jan. 26, 2025, 4 p.m.