search for: cleardelta

Displaying 1 result from an estimated 1 matches for "cleardelta".

2003 Apr 25
3
Code bug unresolved involving if condition
Hi R lovers! I am a beginner in coding with R so my question may be very easily solved but I don't know how. I have written the following function in a .txt file ClearDelta <- function(Matrix) { ncol<-ncol(Matrix);nrow<-nrow(Matrix); for (i in 1:nrow) { for (j in 1:(ncol-1)) {if (Matrix[i,j]==NA) (NA->Matrix[i,j+1])} } } I can charge it with the source() command But I get the following message wh...