R/fitted.R

################################################################################
# Random KNN fitted Functions                                                  #
# File:   plot.R                                                               #
# Author: Shengqiao Li                                                         #
# Date:   June 24, 2008 (initial)                                              #
################################################################################

fitted.rknn<-
function (object, ...) 
{
    if (!inherits(object, "rknn")) 
        stop(deparse(substitute(object)), " is not a rknn object")
    object$pred
}
################################################################################

Try the rknn package in your browser

Any scripts or data that you put into this service are public.

rknn documentation built on May 2, 2019, 12:35 p.m.