summ_2col | R Documentation |
Summaries two columns information
summ_2col(df, from = 1, to = 2, count = 3, direct = FALSE)
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 |
data.frame
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()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.