Displaying 1 result from an estimated 1 matches for "sesnum".
Did you mean:
seqnum
2000 Mar 27
1
Behavior different inside function?
...able()
line:
Error in count.fields(file, sep, quote, skip) :
can't open file fspci1.dat
Can anyone tell my why this should be so? Here is the program:
library(rpart)
wait <- function(str="Press a key when ready...")
readline(str)
doit <- function (fn=" ", sesnum, tit=" ", fm=" ") {
dsn <- paste(fn, sesnum, ".dat", sep="", collapse=NULL)
psn <- paste(fn, sesnum, ".ps", sep="", collapse=NULL)
fm1 <- as.formula(fm)
ds <- read.table(file=dsn, header=T)
rownames(ds) <- ds$unit...