search for: vecwordlen

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

Did you mean: vectorlen
2001 Dec 21
0
read.table and as.vector (Was error message: "Error in model.frame")
...model.frame(formula, rownames, variables, varnames, extras, extranames, invalid variable type But if I do something like for (i in list.files(pattern = "*.dmp")) { currentfile <- read.table(i) n <- currentfile$V3 numn<-as.numeric(n) residuals <- residuals(lm(numn ~ vecwordlen)) ... } everything works fine. Why should this happen? Here is the full script containing the above loop: #----------------------------------------------------- foobar <- commandArgs()[3] # read in third command line argument # from shell script...
2001 Dec 20
0
error message: "Error in model.frame"
...ntfile <- read.table(i) vecrawrts <- as.vector(currentfile$V3) residuals <- residuals(lm(v .... [TRUNCATED] Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type > traceback() 9: model.frame.default(formula = vecrawrts ~ vecwordlen, drop.unused.levels = TRUE) 8: model.frame(formula = vecrawrts ~ vecwordlen, drop.unused.levels = TRUE) 7: eval(expr, envir, enclos) 6: eval(mf, parent.frame()) 5: lm(vecrawrts ~ vecwordlen) 4: residuals(lm(vecrawrts ~ vecwordlen)) 3: eval.with.vis(expr, envir, enclos) 2: eval.with.vis(ei, envir) 1...