updated namespace and docs

master
Erik de Vries 4 years ago
parent 8ff4097304
commit 17d49f07c0

@ -1,6 +1,5 @@
# Generated by roxygen2: do not edit by hand # Generated by roxygen2: do not edit by hand
export(actor_merger)
export(actorizer) export(actorizer)
export(bulk_writer) export(bulk_writer)
export(class_update) export(class_update)
@ -20,5 +19,6 @@ export(out_parser)
export(preproc) export(preproc)
export(query_gen_actors) export(query_gen_actors)
export(query_string) export(query_string)
export(sent_merger)
export(sentencizer) export(sentencizer)
export(ud_update) export(ud_update)

@ -1,24 +0,0 @@
% 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)
}

@ -0,0 +1,34 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sent_merger.R
\name{sent_merger}
\alias{sent_merger}
\title{Aggregate sentence-level dataset containing sentiment (from sentencizer())}
\usage{
sent_merger(
df,
actors_meta = NULL,
actor_groups = NULL,
pos_cutoff = NULL,
neg_cutoff = NULL
)
}
\arguments{
\item{df}{Data frame with actor ids, produced by sentencizer}
\item{actors_meta}{Optional 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)}
\item{pos_cutoff}{Optional value above which sentence-level sentiment scores should be considered "positive"}
\item{neg_cutoff}{Optional value below which sentence-level sentiment scores should be considered "negative"}
}
\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 sentiment (from sentencizer())
}
\examples{
sent_merger(df, actors_meta, ids = NULL)
}
Loading…
Cancel
Save