search for: asset2

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

Did you mean: assets
2009 Nov 27
1
generating a matrix after a for loop..
...n=NumberOfSim) #print(c(colnames(x[i]),z[,2]),digits=3) } } z is the simulated return series. How can I say: "print z next to previous z and form a matrix" How could I get an matrix as a result..? So that I would have simulations from asset1 distribution at first column, simulation from asset2 at second column etc. And the result would be NumberOfSim X Ncol matrix.. Thanks for any help Br, John [[alternative HTML version deleted]]
2009 Jul 15
1
RODBC results from stored procedure
...? >dbdata<-sqlQuery(conn,"sp_GetReturns,'2009-07-10','2009-07-14'") >head(dbdata) character(0) [....no data here....] >dbdata<-sqlQuery(conn,"select * from returns order by Date asc") [...success...] >head(dbdata) Date Asset1 Asset2.... 2009-07-10 0.01 0.02 2009-07-13 0.007 -0.003 ... I'd appreciate any suggestions, Andrew W rm(dbdata) #run query in query analyzer and get date from rtnsUnderscored table #dbdata<-sqlFetch(conn,sqtable="sp_GetModelRtns4OptimizeRangeVer4 5000,'2001-10-01...
2007 Dec 20
3
ActiveRecords Eager Loading
Hi, I am doing an eager loading in ruby on rails using below statement ------------------------ Article.find(:all, :include => [:asset, :vote], :conditions=>"assets.parent_id is null", :order=>"stat_final_ranking desc", :limit=>20) --------------------------------------- the above statement resulted in this expensive query.