summ_2col {MetaNet} | R 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()
}
[Package MetaNet version 0.1.2 Index]