SCM

SCM Repository

[matrix] Diff of /pkg/Matrix/R/sparseMatrix.R
ViewVC logotype

Diff of /pkg/Matrix/R/sparseMatrix.R

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3019, Sat Oct 11 20:51:53 2014 UTC revision 3020, Tue Oct 14 16:14:02 2014 UTC
# Line 357  Line 357 
357              dim(cx) <- dim(m)              dim(cx) <- dim(m)
358              dimnames(cx) <- dn              dimnames(cx) <- dn
359          } else ## workaround bug in apply() which has lost row names:          } else ## workaround bug in apply() which has lost row names:
360              if(getRversion() < "3.2" && !is.null(names(dn)))              if(getRversion() < "3.2" && !is.null(names(dn))) {
361                    if(is.null(dimnames(cx)))
362                        dimnames(cx) <- dn
363                    else
364                  names(dimnames(cx)) <- names(dn)                  names(dimnames(cx)) <- names(dn)
365      }      }
366        }
367      if (missing(col.names))      if (missing(col.names))
368          col.names <- {          col.names <- {
369              if(!is.null(cc <- getOption("sparse.colnames")))              if(!is.null(cc <- getOption("sparse.colnames")))

Legend:
Removed from v.3019  
changed lines
  Added in v.3020

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge