-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
59 lines (42 loc) · 1.5 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
message = FALSE,
warning = FALSE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# similR: Similarity and Distance metrics for binary matrices
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![CRAN status](https://www.r-pkg.org/badges/version/similR)](https://cran.r-project.org/package=similR)
[![Travis build status](https://travis-ci.org/muriteams/similR.svg?branch=master)](https://travis-ci.org/muriteams/similR)
[![Build status](https://ci.appveyor.com/api/projects/status/p0xice4ingylud9r?svg=true)](https://ci.appveyor.com/project/gvegayon/similr-adu2u)
The development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("USCCANA/similR")
```
## Example
An example from the manual
```{r}
library(similR)
data(powerset03)
# We can compute it over the entire set
head(similarity(powerset03, statistic="s14"))
# Or over two pairs
head(similarity(powerset03[[1]], powerset03[[2]], powerset03[[3]], statistic="s14"))
# We can compute multiple distances at the same time
ans <- similarity(powerset03, statistic=c("hamming", "dennis", "jaccard"))
head(ans)
```
Currently, the full list of available statistics is:
```{r}
data("statistics")
statistics
```