search for: fallinband

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

2012 Nov 05
1
custom function & missing value where TRUE/FALSE needed
I can't figure out why this function wont work. #Custom Function used fallInBand <- function(x){ #Assume the bands fall go up form 0 to 100 in intervals of 5 then from 100 to 1000 in intervals of 100. #returns the location (band number) if (is.na(x) == FALSE) { if(x < 100) {#bands of 5 if((x %% 5) >=0){#falls within the band Result = as.integer...