[R] NaN's in class 'performance; [package "ROCR"]

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Feb 25 19:09:27 CET 2012



On 24.02.2012 17:41, Chet Seligman wrote:
> The first item in @ y.values is a NaN
> Slot "y.values":
> [[1]]
>    [1]       NaN 1.0000000
>
> How do replace it with 1.000000 or otherwise get rid of it?


I wonder if you really want to do that,m but if so, you can replace it by:

object at y.values[[1]][1] <- 1

Uwe Ligges




> Chet
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list