Frédéric Santos' notebook
Emacs and R tricks for anthropologists and archaeologists.

Posts tagged "R":

How to define custom line types with R?

02 déc. 2020

There are already six default line types defined in R; but how can one create a new, custom line type? It’s quite easy to do this in Python… and just as easy to do in R!

(...)

How to perform a NPMANOVA with R?

07 mai 2020

Performing a non-parametric multivariate analysis of variance (NPMANOVA), also known as permutational multivariate analysis of variance (PERMANOVA), is relatively easy thanks to the function adonis() implemented in the R package vegan. In this blog post :

(...)

How to know if an individual specimen may be a member of a given reference population?

15 avril 2020

Let’s say you have one given specimen of unknown origin or species. Although you do not know precisely to which group this individual belongs, you have several hypotheses; e.g., you think that this individual might belong to populations A or B, but is certainly not a member of population C. In this post, we will illustrate some possible methods to assess the credibility of those hypotheses, depending on the data you were able to collect (or you are willing to use).

(...)

Comment boxes for R scripts within Emacs

06 avril 2020

Some people like to insert nice comment boxes in their R scripts. Using Emacs and ESS, this is easy to achieve thanks to the lisp function comment-box.

(...)

Comparing correlation coefficients with R

01 avril 2020

In biological anthropology, a common problem is to compare correlation coefficients between two pairs of variables. Here is a motivating example, with a small artificial dataset.

(...)

Some useful R ressources for archaeologists and anthropologists

30 mars 2020

“R packages, like friends, should be few and well chosen.” — Approximately by Charles Caleb Colton.

(...)