It allows to recompile the datasets speech or a data.frame built with speech_build to which the variable political party was added.

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.

Value

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.

Examples

# \donttest{
# url <- "http://bit.ly/35AUVF4"
# out <- speech_build(file = url)
# out2 <- speech_recompiler(out)
# out2 <- speech_recompiler(out, compiler_by = c("legislator", "legislature", "chamber"))
# }