-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailor_chat.Rd
35 lines (31 loc) · 1.27 KB
/
tailor_chat.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tailor_chat.R
\name{tailor_chat}
\alias{tailor_chat}
\title{Restricting chat logs to certain authors or timeframes.}
\usage{
tailor_chat(
data,
names = "all",
starttime = "1960-01-01 00:00",
endtime = as.character(Sys.time()),
exclude_sm = FALSE
)
}
\arguments{
\item{data}{A WhatsApp chat log that was parsed with \code{\link[WhatsR]{parse_chat}}.}
\item{names}{A vector of names that the output is restricted to. Messages from other non-contained authors are excluded.}
\item{starttime}{Datetime that is used as the minimum boundary for exclusion. Is parsed with \code{\link[anytime]{anytime}}. Standard format is "yyyy-mm-dd hh:mm".}
\item{endtime}{Datetime that is used as the maximum boundary for exclusion. Is parsed with \code{\link[anytime]{anytime}}. Standard format is "yyyy-mm-dd hh:mm".}
\item{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
}
\description{
Excluding parts of the chat by senders or timestamps
}
\examples{
data <- readRDS(system.file("ParsedWhatsAppChat.rds", package = "WhatsR"))
tailor_chat(data, names = c("Mallory", "Alice"))
}