search for: datatoanalyse

Displaying 2 results from an estimated 2 matches for "datatoanalyse".

2012 Mar 03
1
Sliding Window in R (solved)
Dear all, you can find below my solution for sliding a window. Please find below the code for the two alternatives and the benchmarks.     install.packages('caTools') require(caTools) do_sliding_for_a_window_duty_cycle <- function(DataToAnalyse,  windowSize) {   data<-DataToAnalyse   out <- numeric()   elements<- numeric()   if (length(data[,1]) >= windowSize){       for (i in 1:(length(data[,1]) - windowSize +1  )) {         out[i] <- mean(data[i:(i + windowSize - 1), ])         elements[i]<-length(i:(i + windowSize -...
2011 Nov 01
1
Nested lapply? Is this allowed?
Dear all, I want for a given data set to call a funciton many time. That bring us all to the notion of lapply (or any other variance). My problem is that this data set should also be created from another lapply As for example   DataToAnalyse <- return_selected_time_interval(TimeStamps,Time[[1]], Time[[2]])  # Where Time[[1]] and Time[[2]] are lists    return(lapply(do_analysis(DataToAnalyse)))   as you can see the DataToAnalyse should be also an lapply. For the list of give Time (Time[[1]] and Time[[2]]) should cr...