Digital resources in the Social Sciences and Humanities OpenEdition Our platforms OpenEdition Books OpenEdition Journals Hypotheses Calenda Libraries OpenEdition Freemium Follow us

Category: R packages

A blueprint-style architectural rendering of a statistical software interface. The image features a dark blue background with white grid lines and technical sketches. On the left, a sidebar displays file upload controls and a statistical interpretation of a $p$-value. The center contains an "Association Plot" with cross-hatched rectangular blocks of varying sizes and heights, representing Pearson residuals across different linguistic categories. A vertical legend on the far right indicates the scale for the residuals. 0

Empowering budding corpus linguists with a custom shiny app

As corpus linguists, we often grapple with the question of how to empower students who may not have extensive coding skills to design tools that fit their research needs. With this in mind, I developed a modest yet very helpful Shiny app that simplifies running [latex]\chi^2[/latex] and Fisher’s exact tests for independence while offering access to the underlying code. This blog post explores how the app was built, its assets and limitations, and reflects on pedagogical goals.

1

Manipulate data with dplyr

The dplyr package is based on a data manipulation ‘grammar’. This grammar provides a consistent set of ‘verbs’ that solve the most common data manipulation tasks. I illustrate five of these ‘verbs’: filter(), arrange(), select(), mutate(), and summarise().

0

Tidy corpus linguistics data with tidyr

The tidyr package is part of the tidyverse. As its name indicates, it is meant to help you create tidy data or tidy messy data according to the tidy data principles: each variable forms a column; each observation forms a row; each type of observational unit forms a table. This post illustrates how to tidy a data set in R using two tidyr functions: pivot_longer() and separate().

1

Should corpus linguists embrace the tidyverse?

Since the publication of my book on corpus linguistics with R, many colleagues have asked me if I was planning to switch the whole code to the tidy style (some of the code in the book makes use of some tidyverse packages. If you want to know my answer, please read on.