summ_2col: Summaries two columns information

summ_2colR Documentation

Summaries two columns information

Description

Summaries two columns information

Usage

summ_2col(df, from = 1, to = 2, count = 3, direct = FALSE)

Arguments

df

data.frame

from

first column name or index

to

second column name or index

count

(optional) weight column, if no, each equal to 1

direct

consider direct? default: FALSE

Value

data.frame

Examples

test <- data.frame(
  a = sample(letters[1:4], 10, replace = TRUE),
  b = sample(letters[1:4], 10, replace = TRUE)
)
summ_2col(test, direct = TRUE)
summ_2col(test, direct = FALSE)
if (requireNamespace("circlize")) {
  summ_2col(test, direct = TRUE) %>% pcutils::my_circo()
}

MetaNet documentation built on May 29, 2024, 1:21 a.m.