Learn R Programming

AnthropMMD

AnthropMMD is an R package for an easy calculation of the mean measure of divergence (MMD). It offers both a graphical user interface (for scientists who are not R programmers), and a set of functions which can be used through the command line interface (for reproducible research or scientists who are already familiar with R).

For the technical and scientific aspects, the package is better described in its vignette.

Feature requests or bug reports are welcome.

Installation of AnthropMMD from CRAN (recommended)

The latest stable version of AnthropMMD is available on CRAN, and can be installed by typing the following command line into the R console:

install.packages("AnthropMMD", dep = TRUE)

Installation of the R package AnthropMMD from GitLab

Alternatively, the latest development (possibly unstable) version can be installed from GitLab.

Install prerequisites

  1. Make sure that Git and a recent version of R (newer than 4.1.0) are installed.

  2. Install the R package remotes by typing the following command line into the R console:

    install.packages("remotes")
  3. Install build environment:

    • Linux: no additional operation required.
    • OSX: install XCODE.
    • Windows: install the latest version of Rtools.

Install AnthropMMD

Run the following command in R:

remotes::install_git('https://gitlab.com/f-santos/anthropmmd.git',
                     build_vignettes = TRUE)

Package vignette

The package vignette can also be consulted locally by running the following command into the R console:

vignette(package = "AnthropMMD", topic = "intro_AnthropMMD")

Running AnthropMMD

To start the graphical interface, run the following commands into the R console:

library(AnthropMMD)
start_mmd()

Citing AnthropMMD

To cite the package in a scientific article, citation information can be found by typing:

citation("AnthropMMD")

into the R console.

Copy Link

Version

Install

install.packages('AnthropMMD')

Monthly Downloads

406

Version

4.0.3

License

CeCILL-2 | file LICENSE

Maintainer

Frederic Santos

Last Published

November 29th, 2023

Functions in AnthropMMD (4.0.3)

mmd

Compute MMD values from a table of sample sizes and relative frequencies
plot.anthropmmd_boot

Display a multidimensional scaling (MDS) plot using Fidalgo et al's (2022) bootstrap method for MMD
select_traits

Select a subset of traits meeting certain criteria
table_relfreq

Converts a table of sample sizes and frequencies into a table of sample sizes and relative frequencies.
AnthropMMD-package

An R package for the Mean Measure of Divergence (MMD)
start_mmd

An R-Shiny application for the mean measure of divergence
plot.anthropmmd_result

Display a multidimensional scaling (MDS) plot with the MMD dissimilarities as input
mmd_boot

Implementation of Fidalgo et al.'s (2022) method of bootstrap for the Mean Measure of Divergence
absolute_freqs

A toy example dataset for mean measures of divergence, in a table format
binary_to_table

Converts a data frame of binary (i.e., presence/absence) trait information into a table of sample sizes and frequencies.
toyMMD

A toy example dataset for mean measures of divergence, in a binary format