This repository contains supplementary material for the paper "Clicks and Cliques. Exploring the Soul of the Community" to enable the reader to reproduce the analysis.
You have a couple of huge chunks of code at the top of the file. I think it would make sense to extract these as separate R files. You could either source() from your knitr doc, or just load the cleaned up data. The advantage of saving csvs from your data cleaning scripts and then loading them in your knitr file is that you can also track changes to the data over time - this is handy for spotting coding errors.
You have a couple of huge chunks of code at the top of the file. I think it would make sense to extract these as separate R files. You could either
source()
from your knitr doc, or just load the cleaned up data. The advantage of saving csvs from your data cleaning scripts and then loading them in your knitr file is that you can also track changes to the data over time - this is handy for spotting coding errors.