search for: predictdata

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

2013 Mar 26
2
Problem with nested for-loop
...;ve pasted the code below and if any additional info is needed please write back and I will post it. #read in the model output data from Jenkins eq. 1 under "data" #read in the prediction data set under "predict data" j1data=read.delim("reduced_j1_forR.txt",header=T) predictdata=read.delim("predictset_forR.txt",header=T) j1data=j1data[,2:4] its=c(rep(1:10000,each=11)) j1data=cbind(its,j1data) #set up a matrix full of zeros "lnbm" where prediction results are placed #set up for loop that first loops over iteration, then species #(total iterations=10000i...
2006 Sep 18
0
Question on apply() with more information...
...:26:25 CDT >To: 'Petr Pikal' <petr.pikal at precheza.cz> >Cc: r-help at stat.math.ethz.ch >Subject: Re: [R] Question on apply() with more information... I think you want something like below but it probably needs some fixing up because i don't recall the syntax exactly. predictdata<-lapply(i=1:length(Smoothlist),function predict (smthlist[[i]],xarry[i,])smthlist= SmoothList,xarry=Xarry) >Hi, > >I tried both ideas, but it isn't that what I'm looking for. >I want to avoid for loop, because the matrix is of big size(1200*1200 >entries) > >With...