Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


MetaNet (version 0.2.5)

summ_2col: Summaries two columns information

Description

Summaries two columns information

Usage

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

Value

data.frame

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

Examples

Run this code
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()
}

Run the code above in your browser using DataLab