Dear Users,
I'm new to Splus and pardon this question, but don't understand the
following lines in a program
I'm trying to use:
c83<-read.table('c:\\bin.txt',header=T)
x<-matrix(0,sum(c83$total),4)
y<-rep(0,sum(c83$total))
g<-rep(0,sum(c83$total))
k<-0
The first line reads data from a text file into a vector called c83. The
second line establishes a
matrix x but with what? What is the value of c83$total ? What do the three
terms 0, c83$total and 4 stand for with regard to the dimensions and
contents of the matrix x?
I assume the last three lines set up vectors of 0 with respective lengths
of c83$total , c83$total , and 0, no ?
Any help greatly appreciated.
Terrence E. Murphy, Ph.D.
Program on Aging
Yale University
1 Church St., 7th Floor
New Haven, CT 06437
terrence.murphy@yale.edu
phone: 203-764-9805
fax: 203-764-9831
|