search for: vecrawrt

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

Did you mean: vecrawrts
2001 Dec 21
0
read.table and as.vector (Was error message: "Error in model.frame")
Hi all, I figured out some things about an earlier question I posted today; this is a new question: I have a for-loop in which I have the following lines for (i in list.files(pattern = "*.dmp")) { currentfile <- read.table(i) vecrawrts <- as.vector(currentfile$V3) ... } Now, vecrawrts is numeric, but if I run the script on all the files with extension .dmp, I get the error message > for (i in list.files(pattern = "*.dmp")) { currentfile <- read.table(i) vecrawrts <- as.vector(currentfile$V3) r...
2001 Dec 20
0
error message: "Error in model.frame"
...called from a shell script. This code has worked fine all these days on hundreds of files, but with the particular set I'm working with now, when I run the above command, I get the error message: > for (i in list.files(pattern = "*.dmp")) { currentfile <- 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)...