Publications by pacha.dev/blog
One Weird Trick to Make Ggplot2 Columns the Same Width
If you have used ggplot2, you probably wondered how to make all columns the same width. Here’s how to do it with one additional line to the usual ggplot statements. We can also center the columns and make columns in the same category more separated. Related To leave a comment for the author, please follow the link and comment on their blog: p...
655 sym 4 img
Text Analysis in R – Exploring Barbie and Oppenheimer Reviews – Part 1
We follow the steps from Welcome to Text Mining with R to import text and reshape it into a format where can can apply what we know from the Tidyverse to analyze word and document frequency. This is a summary of the start of one of my workshops that you can book from [Buyy Me A Coffee)[https://www.buymeacoffee.com/pacha/extras]. Some of the worksho...
761 sym 2 img
Canadian Hansard Live Database
Motivation The original LiPad site provides a SQL dump that requires you to configure PostreSQL on your own laptop or server. Because some classmates asked me about it, I decided to host the database to simplify its access. Description Databases.pacha.dev provides a complete the PostgreSQL database of the Canadian Hansard dataset, including supple...
1672 sym R (2541 sym/5 pcs)
Workshop: Analyzing BarbieHeimer texts with R
Book here: https://www.buymeacoffee.com/pacha/e/153247. Price: 5 USD regular / 3 USD members. Much of the data proliferating today is unstructured and text-heavy. We can use different data sources, such as scraped Barbie and Oppenheimer reviews to conduct natural language processing. This workshop will introduce you to the basics of text analysis i...
1430 sym 2 img
Step-by-Step Guide to Scrape UN Comtrade metadata with R and Selenium
R and Shiny Training: If you find this blog to be interesting, please note that I offer personalized and group-based training sessions that may be reserved through Buy me a Coffee. Additionally, I provide training services in the Spanish language and am available to discuss means by which I may contribute to your Shiny project. Motivation UN Comtr...
3401 sym R (3216 sym/12 pcs) 2 img
R and/or Python training – 4 sessions – With discount
Book here: https://www.buymeacoffee.com/pacha/e/153099. Price: 100 USD regular / 80 USD members. I’m happy to help you mastering the basics of R and/or Python, and therefore make your daily work easier and more enjoyable. If you already have some spreadsheet knowledge, I’ll show you how to apply what you already know to writing code. Our sessio...
1973 sym 2 img
A naive simplex phase 2 implementation with C++ 11 and R
R and Shiny Training: If you find this blog to be interesting, please note that I offer personalized and group-based training sessions that may be reserved through Buy me a Coffee. Additionally, I provide training services in the Spanish language and am available to discuss means by which I may contribute to your Shiny project. Motivation I am in ...
3199 sym Python (9643 sym/4 pcs) 68 img
I’m hiring a C++ tutor who knows R
General objective I need to hire a tutor who can teach me C++ and how to integrate it with R. For this, I need a tutor that has at least 2 years of experience with R and ideally that writes C++ code professionally. Specific objectives I want to fix my code for fixest2, and while the core functions work, there are memory leaks and double/integer c...
2057 sym
Using Custom TeX Fonts (Lucida and Minion Pro) in Quarto
Motivation I found a copy of Lucida and Minion Pro that I bought back in 2013 and that I had on my Google Drive. I really like these fonts but the setup is a bit challenging. Here I will show how to use them in a Quarto document in 2023. About the fonts See varsityblues for a set of complete LaTeX templates to be used with R Markdown or Quarto. Yo...
3045 sym R (747 sym/6 pcs)
Linear Models in R – Part 3
A step-by-step explanation of how to fit a linear model. Here we cover GLMs (Generalized Linear Models) but focus on the Poisson link with a large number of fixed effects and work with datasets that we have to download and join to produce a final dataset to explore the effects of distance, contiguity and colonial history on exports. You can read mo...
1268 sym