Skip to content

Commit

Permalink
fix for --as-cran check
Browse files Browse the repository at this point in the history
  • Loading branch information
edwindj committed Oct 15, 2021
1 parent 2432c42 commit 69f8362
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
5 changes: 4 additions & 1 deletion R/elm.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,16 @@ fitted.elm <- function(object, ...){
object$fitted_values
}

#' Predict with elm
#'
#' Wrapper for \code{\link{elm_predict}}.
#' @export
#' @rdname elm
#' @param object elm model fitted with \code{\link{elm}}.
#' @param newdata data.frame with the new data
#' @param type only used with classification, can be either "class", "prob", "raw",
#' which are class (vector), probability (matrix) or the output of the elm function (matrix).
#' @param ... not used
#' @return predicted values
predict.elm <- function(object, newdata, type=c("class", "prob", "raw"), ...){
type <- match.arg(type)
if (object$is_regression && type != "class"){
Expand Down
12 changes: 0 additions & 12 deletions man/elm.Rd

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

24 changes: 24 additions & 0 deletions man/predict.elm.Rd

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

0 comments on commit 69f8362

Please sign in to comment.