tailor_chat {WhatsR} | R Documentation |
Restricting chat logs to certain authors or timeframes.
Description
Excluding parts of the chat by senders or timestamps
Usage
tailor_chat(
data,
names = "all",
starttime = "1960-01-01 00:00",
endtime = "2200-01-01 00:00",
exclude_sm = FALSE
)
Arguments
data |
A 'WhatsApp' chat log that was parsed with |
names |
A vector of names that the output is restricted to. Messages from other non-contained authors are excluded. |
starttime |
Datetime that is used as the minimum boundary for exclusion. Is parsed with |
endtime |
Datetime that is used as the maximum boundary for exclusion. Is parsed with |
exclude_sm |
If TRUE, excludes the 'WhatsApp' system messages from the descriptive statistics. Default is FALSE. |
Value
A dataframe that is restricted to the specified timeframe and authors
Examples
data <- readRDS(system.file("ParsedWhatsAppChat.rds", package = "WhatsR"))
tailor_chat(data, names = c("Mallory", "Alice"))