Diff of /man/summ_2col.Rd [000000] .. [13df9a]

Switch to unified view

a b/man/summ_2col.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/2-2.manipulate.R
3
\name{summ_2col}
4
\alias{summ_2col}
5
\title{Summaries two columns information}
6
\usage{
7
summ_2col(df, from = 1, to = 2, count = 3, direct = FALSE)
8
}
9
\arguments{
10
\item{df}{data.frame}
11
12
\item{from}{first column name or index}
13
14
\item{to}{second column name or index}
15
16
\item{count}{(optional) weight column, if no, each equal to 1}
17
18
\item{direct}{consider direct? default: FALSE}
19
}
20
\value{
21
data.frame
22
}
23
\description{
24
Summaries two columns information
25
}
26
\examples{
27
test <- data.frame(
28
  a = sample(letters[1:4], 10, replace = TRUE),
29
  b = sample(letters[1:4], 10, replace = TRUE)
30
)
31
summ_2col(test, direct = TRUE)
32
summ_2col(test, direct = FALSE)
33
if (requireNamespace("circlize")) {
34
  summ_2col(test, direct = TRUE) \%>\% pcutils::my_circo()
35
}
36
}