speech_recompiler {speech} | R Documentation |
Speech recompiler
Description
It allows to recompile the datasets speech or a data.frame built with
speech_build
to which the variable political party was added.
Usage
speech_recompiler(
tidy_speech,
compiler_by = c("legislator", "legislature", "chamber", "date", "id", "sex")
)
Arguments
tidy_speech |
data.frame. |
compiler_by |
character vector. Variables for which you may want to recompile the data frame. |
Details
The default compilation is that of \ code speech_build (., compiler = TRUE). This function allows to recompile the data by different levels of aggregation: chamber, legislature or other variables.
Value
data.frame.
Examples
# url <- "http://bit.ly/35AUVF4"
# out <- speech_build(file = url)
# out2 <- speech_recompiler(out)
# out2 <- speech_recompiler(out, compiler_by = c("legislator", "legislature", "chamber"))
[Package speech version 0.1.5 Index]