Displaying 2 results from an estimated 2 matches for "sampsz".
Did you mean:
sampsa
2001 Mar 20
3
help:too slow
here is a script I use to make overlapping cut of my input "col.dat"
file into a matrix:
#----------------------------------
col2mat<-function(x, sampsz=220, qsamp=2000) {
m<-matrix(nr=qsamp, nc=sampsz)
for(s in 1:qsamp){
print(s)
for(i in 1:sampsz){
m[s,i] <- x[s+i,1]
}
}
m
}
w<-read.table("col.dat", check.names=FALSE)
m<-col2mat(w)
#----------------------------------
the input file "col.dat&q...
2005 Jul 07
2
randomForest
...))
> a
[[1]]
[1] 1
[[2]]
[1] 2
> is.vector(a)
[1] TRUE
> is.numeric(a)
[1] FALSE
Actually, the way I initialize a list of known length is by something like:
myList <- vector(mode="list", length=veryLong)
Andy
> i also tried as.vector(sample.size) and assigned it to sampsz,it still
> does not work.
>
> On 7/7/05, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
> > On 7/7/2005 3:38 PM, Weiwei Shi wrote:
> > > Hi there:
> > > I have a question on random foresst:
> > >
> > > recently i helped a friend with her ra...