Helper Functions for Sentiment Analysis of FARC negotiations

add_monthly_covariates | Function to add covariate data to a dataframe |

convert_fitted_data | Convert fitted data |

extract_liwc_values | Function to get raw LIWC measures for a corpus of text |

generate_base_actor | Function to generate a base graph by actor |

generate_base_graph | Function to generate a base graph of sentiment |

generate_binary_states | Function to calculate binary sentiment level (low or high) |

generate_graph_predicted | Function to generate a base graph by actor |

generate_lead_state | Function to create a new lead variable from an existing... |

generate_states | Function to coarsen sentiment data into binary states |

graph_add_dates | Function to add major dates to a base graph |

liwc_summary_stats | Function to generate summary statistics for a LIWC matrix |

loess_lines | Function to generate loess lines from point estimates |

loess_liwc_estimates | Function to calculate loess point estimates of LIWC estimates |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.