search for: seuil

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

Did you mean: tseuil
2012 May 10
1
stop calculation in a function
...ists, and so tries to modify the length of my data (the error message is that the output has not the same length as the input). Could somebody tell me what I should modify or add in my function in order to fix this problem? Here's the function. Thanks for your advises! out2NA <- function(x,seuil){ st1 = NULL # Temporal variable memorysing the last "correct" numeric value# temp <- st1[1] <- x[1] ind_temp <- 1 # Max time gap between two comparisons # ecart_temps <- 10 tps <- time(x) for (i in 2:length(x)){ if((!is.na(x[i]))){...