Commit fe3281f0 authored by Andreas Leha's avatar Andreas Leha
Browse files

[clean] generated files including latest changes

parent fa24d89b
......@@ -7,4 +7,4 @@ Imports: pROC, dplyr, tibble, rlang, purrr
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.1.1
RoxygenNote: 7.1.1
......@@ -10,6 +10,7 @@ export(PREVfromConfusion)
export(SENSfromConfusion)
export(SPECfromConfusion)
export(confmat2df)
export(confmatdfAddSums)
export(local_regextract)
export(pROCaucdf)
export(pROCdf)
......@@ -17,6 +18,9 @@ export(pROCyouden)
export(youdenConfmat)
importFrom(dplyr,"%>%")
importFrom(dplyr,bind_cols)
importFrom(dplyr,bind_rows)
importFrom(dplyr,mutate)
importFrom(dplyr,summarise_all)
importFrom(dplyr,tribble)
importFrom(purrr,possibly)
importFrom(rlang,.data)
......
......@@ -3,8 +3,7 @@
\docType{package}
\name{binclaperf}
\alias{binclaperf}
\alias{binclaperf-package}
\title{binclaperf}
\description{
binclaperf
Convenience funktions to report results from binary classification
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/confmat.R
\name{confmatdfAddSums}
\alias{confmatdfAddSums}
\title{Take a confmat (as data.frame) and add row/col sums}
\usage{
confmatdfAddSums(x)
}
\arguments{
\item{x}{2x2 data.frame in the format as produced by \code{\link{confmat2df}}}
}
\value{
data.frame 3x3 with added row/column
}
\description{
Append a column with rowsums and a row with colsums
}
\examples{
## draw data
n <- 50
truth <- sample(c("control", "case"), size = n, replace = TRUE)
prediction <- sample(c("control", "case"), size = n, replace = TRUE)
## confusion matrix
confmat <-table(truth, prediction)
## confusion matrix as data.frame
confdf <- confmat2df(confmat)
## with sums
confmatdfAddSums(confdf)
}
\author{
Dr. Andreas Leha
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment