[R] Unexpected returned value from a function

p at fo76.org p at fo76.org
Wed Sep 17 01:12:06 CEST 2008


Sorry, there was a stupid cut & paste mistake (missing parentheses in
return statement...)

ConvertMissingToNA <- function(values)
{
     values[values == -9999 | values == -999999] <- NA
     return(values)
}


Peter



More information about the R-help mailing list