File: binaryChecks.R

package info (click to toggle)
r-cran-modelmetrics 1.2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 300 kB
  • sloc: cpp: 252; sh: 10; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 146 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8



binaryChecks <- function(x, method){
  if(length(unique(x)) > 2){
    stop(paste(method, "only works for binary outcomes at this time"))
  }
}