How to Cite

Mattingly, William: “Python” or “R”? Getting Started with Programming for Humanists, in Nunn, Christopher A. and van Oorschot, Frederike (Eds.): Compendium Computational Theology, vol. 1: Introducing Digital Humanities to Theology, Heidelberg: heiBOOKS, 2024, p. 177–187. https://doi.org/10.11588/heibooks.1521.c21947

License (Chapter)

Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Identifiers (Book)

ISBN 978-3-911056-19-9 (PDF)

Published

12/19/2024

Authors

William Mattingly

“Python” or “R”? Getting Started with Programming for Humanists

Abstract This article describes how programming languages such as Python and R open up new research opportunities for the humanities by analysing large text corpora, visualising patterns in data and automating repetitive tasks. Python and R are probably the most prominent programming languages for engaging in the Digital Humanities. Python offers advantages for text analysis and machine learning due to its simple syntax and versatile libraries, while R scores with its statistical functions and visual representation options for data manipulation. The choice between Python and R therefore depends on the specific research requirements, although both languages are well suited to the humanities due to their strong communities and extensive resources. Learning strategies for getting started with programming and how to deal with potential pitfalls are also discussed.

Keywords Programming Languages, Python, R, Humanities, Digitization, Digital Education