search for: lengthx

Displaying 3 results from an estimated 3 matches for "lengthx".

Did you mean: length
2011 Jul 29
2
special recursive filter
...wait = 2 desired result: result = 1 0 0 1 0 0 0 1 0 0 0 1 0 0 1 working implementation: #************************************************************************* # basic informations #************************************************************************* # length of input vector lengthX <- length(x) # stop times for the recursive filter indices stopS <- 1:lengthX + wait - 1 # initialize the result and the intermediate result vector # with additional length for recursive filtering result <- y <- numeric(lengthX + wait) #***********************************...
2012 Apr 01
1
indexing in a function doesn't work?
...RUE) try(num[i]<-AIC(mod), silent=TRUE) try(legend("bottomright", legend=round(num[i],3) , col="black"), silent=TRUE) try((num), silent=TRUE) } }} for(i in 0:a+1){ num<-sub.plotter(i,fram,framvec,form1,form2,form3,type,xlm,ylm) } plot.cor<-function(x){ temp<-a+1 lengthx<-c(1:temp) plot(x~c(1:temp)) m2<-lm(x~c(1:temp)) abline(m2) n<-summary(m2)$adj.r.squared legend("bottomright", legend=signif(n), col="black") slope<-(coef(m2)[2])# slope values<-(num)#values for aic or adj r2 r2ofr2<-(n) #r2 of r2 or AIC output<-data.fra...
2003 Apr 15
1
Building R package.
...ld a package which calls an c function. It compiles it and installs it. But if i run R CMD check test_ the last output are: * checking examples ... ERROR Running examples failed. x<-1:10 and in the test-Ex.out file i find: > test(x) Error in .C("mytest", as.double(x), as.integer(lengthx)) : C/Fortran function name not in load table Execution halte May anyone take a look on this test please? system "Linux" "2.4.19-16mdk" R version 1.62 Eryk