The R Project SVN R

Rev

Rev 61168 | Rev 70665 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61168 Rev 61433
Line 42... Line 42...
42
  \code{x}.  The resulting vector will have \code{\link{names}} if the
42
  \code{x}.  The resulting vector will have \code{\link{names}} if the
43
  matrix \code{x} has matching column and rownames.
43
  matrix \code{x} has matching column and rownames.
44
 
44
 
45
  The replacement form sets the diagonal of the matrix \code{x} to the
45
  The replacement form sets the diagonal of the matrix \code{x} to the
46
  given value(s).
46
  given value(s).
47
  
47
 
48
  In all other cases the value is a diagonal matrix with \code{nrow}
48
  In all other cases the value is a diagonal matrix with \code{nrow}
49
  rows and \code{ncol} columns (if \code{ncol} is not given the matrix
49
  rows and \code{ncol} columns (if \code{ncol} is not given the matrix
50
  is square).  Here \code{nrow} is taken from the argument if specified,
50
  is square).  Here \code{nrow} is taken from the argument if specified,
51
  otherwise inferred from \code{x}: if that is a vector (or 1D array) of
51
  otherwise inferred from \code{x}: if that is a vector (or 1D array) of
52
  length two or more, then its length is the number of rows, but if it
52
  length two or more, then its length is the number of rows, but if it