Skip to content

Commit

Permalink
deprec misspelled func
Browse files Browse the repository at this point in the history
  • Loading branch information
kalimu committed May 9, 2016
1 parent f3099f1 commit 82d81fa
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by roxygen2: do not edit by hand

export(classificationErrors)
export(classificatonErrors)
export(findGivenNames)
export(genderize)
export(genderizeAPI)
Expand Down
26 changes: 26 additions & 0 deletions R/classificatonErrors.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#' Calculating classification errors and other prediction indicators
#'
#' \code{classificatonErrors} function was misspelled (sorry for that!).
#' Now the function has the proper name \code{classificationErrors} (with "i").
#' Old function name still works, but is deprecated now and will be removed
#' in future version of the package.
#'
#' @param labels A vector of true labels. Shoud have following
#' values: c("female", "male", "unknown", "noname"). \code{noname} stands also for
#' initials only.
#' @param predictions A vector of predicted gender. Shoud have following
#' values: c("female", "male", NA). \code{NA} when it was not possible to predict any gender.
#'

#'
#'
#'
#' @export

classificatonErrors = function(labels, predictions) {

.Deprecated("classificationErrors")
classificationErrors(labels, predictions)

}

23 changes: 23 additions & 0 deletions man/classificatonErrors.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 82d81fa

Please sign in to comment.