search for: dumplist

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

2012 Jan 01
3
rep() inside of lm()?
...newlist)=2. However, in my function this list can be any number of entries, 1 to N. I want to regress each newlist[[N]] in a multiple linear regression. The problem is I don't know how to make a non-character or a non-numeric repeat. So I'd want something like: #--------------------------- dumplist<-list() for(a in 1:length(newlist[[1]])){ for(b in 1:length(newlist[[2]]){ for(terminal in 1:length(newlist[[length(newlist)]])){ dumlist[[..]]<-lm(y~newlist[[1]][a] + newlist[[2]]][b] + ....... + newlist[[N]][terminal]). }}} #--------------------------- and I want the above to adjust to w...
2012 May 04
2
Can't import this 4GB DATASET
...875 0 28 10001 02/18/1986 11 GREAT FALLS GAS CO -6.1875 7000 29 10001 02/19/1986 11 GREAT FALLS GAS CO -6.2500 5200 ###/*MY ATTEMPT USING FILEHASH*/### #First, try and upload the 29 row dataset (the tiny subset of the whole dataset). install.packages("filehash");require(filehash) dumpList(read.table("dataset2.txt",skip=6),dbName="db02") #Note that DumpDF also works. env02 <- db2env(db="db02") with(env02,V1) # [1] 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 1000...