You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mamlr/man/actor_merger.Rd

25 lines
966 B

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/actor_merger.R
\name{actor_merger}
\alias{actor_merger}
\title{Aggregate sentence-level dataset containing actors (from sentencizer())}
\usage{
actor_merger(df, actors_meta, actor_groups = NULL)
}
\arguments{
\item{df}{Data frame with actor ids, produced by sentencizer}
\item{actors_meta}{Data frame containing actor metadata obtained using elasticizer(index="actors")}
\item{actor_groups}{Optional list of vectors, where each vector contains actor ids to be merged (e.g. merge all left-wing parties)}
}
\value{
When no ids, returns actor-article dataset with individual actors, party aggregations, party-actor aggregations and overall actor sentiment (regardless of specific actors). When ids, returns aggregations for each vector in list
}
\description{
Aggregate sentence-level dataset containing actors (from sentencizer())
}
\examples{
actor_merger(df, actors_meta, ids = NULL)
}