The ouput from LISREL is a matrix,so the read.matrix(tseries) will do the job in this situation.
?read.matrix read.matrix(tseries) R Documentation Read Matrix Data Description Reads a matrix data file. Usage read.matrix(file, header = FALSE, sep = "", skip = 0) 2006/3/10, Felix Flory <[EMAIL PROTECTED]>: > I am using R and LISREL for simulation studies. R generates the data > that is analyzed with LISREL. > In LISREL I use "PV" in the LISREL output statement to request estimated > variances. LISREL writes these in a file that looks like this: > > 1 0 0 > 0.100331D+01 0.144845D+01 0.141009D+01 0.214423D+01 0.214129D+01 > 0.194464D+01 > 0.191531D+01 0.198328D+01 0.100683D+00-0.236392D-01 0.200655D+01 > 0.100142D+01 > 0.572501D+01 0.131652D+01 0.112175D+01 0.186140D+01 0.212321D+01 > 0.207455D+01 > 0.201915D+01-0.224004D+01 0.966613D+00 0.459977D+01 0.133921D+01 > 0.613532D+01 > 0.201852D+01 0.198881D+01 0.203360D+01 0.200934D+01-0.115235D+01 > 0.975292D+00 > -0.756997D-01 0.341922D+01 0.334352D+01 0.360463D-01-0.112819D+00 > > I need a function that reads these numbers back into R. I tried around with > > read.fwf("pv.lpr", widths=rep(13, 6), skip=1) > read.fortran() > scan() > > without success. > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > -- 黄荣贵 Deparment of Sociology Fudan University
______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html