-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
51 lines (36 loc) · 1.28 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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/",
out.width = "100%"
)
```
# xtranat
<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/xtranat)](https://CRAN.R-project.org/package=xtranat)
[![R-CMD-check](https://github.com/r-lib/usethis/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/fdepaolis/xtranat/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
# xtranat <img src="man/figures/logo.png" align="right" height="139" />
The functions in the 'xtranat' package are based on random walks. They compute *Counting Betweenness* and *Random Walk Centrality*. It also computes the normalized values of each function.
## Installation
You can install the development version of xtranat from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("fdepaolis/xtranat")
```
## Example
Load the library and run the cbet() and rwc() functions:
```{r example}
library(xtranat)
## Main functions
cbet(exmpl_matrix)
rwc(exmpl_matrix)
## Normalized values (maximum value=1.0; minimum value=0.0)
cbet_norm(exmpl_matrix)
rwc_norm(exmpl_matrix)
```