search for: fac2sparse

Displaying 10 results from an estimated 10 matches for "fac2sparse".

2020 Jul 21
2
trivial typo in ?Matrix::sparse.model.matrix.Rd
? "form" -> "from". Diff against latest SVN: Index: sparse.model.matrix.Rd =================================================================== --- sparse.model.matrix.Rd??? (revision 3336) +++ sparse.model.matrix.Rd??? (working copy) @@ -4,7 +4,7 @@ ?\alias{fac2sparse} ?\alias{fac2Sparse} ?\description{Construct a sparse model or \dQuote{design} matrix, -? form a formula and data frame (\code{sparse.model.matrix}) or a single +? from a formula and data frame (\code{sparse.model.matrix}) or a single ?? factor (\code{fac2sparse}). ?? The \code{fac2[Ss]parse()...
2024 Apr 11
1
[External] Re: Repeated library() of one package with different include.only= entries
...me that > library(Matrix, include.only="isDiagonal") > implies that only `isDiagonal` ends up on the search path This could also be a reasonable behavior, but neither does that happen today. > I think a far better approach to solve Michael's problem is simply to use > fac2sparse <- Matrix::fac2sparse This does not fully simulate attachment, e.g. running package hooks & resolving Depends. > ?library could also mention using detach() followed by library() or > attachNamespace() with a new include.only specification. This is the "quite hard to accomplish&...
2024 Apr 15
1
[External] Re: Repeated library() of one package with different include.only= entries
...does that happen > today. Indeed; I think we should signal a warning at least in the case it does not happen --- namely when "parts of Matrix" are already in the search path. >> I think a far better approach to solve Michael's problem is simply to use >> fac2sparse <- Matrix::fac2sparse > This does not fully simulate attachment, e.g. running package hooks & > resolving Depends. (indeed; as library() is really about search() patch attchment) >> ?library could also mention using detach() followed by library() or >> at...
2024 Apr 08
1
Repeated library() of one package with different include.only= entries
Right now, attaching the same package with different include.only= has no effect: library(Matrix, include.only="fac2sparse") library(Matrix) ls("package:Matrix") # [1] "fac2sparse" ?library does not cover this case -- what is covered is the _loading_ behavior of repeated calls: > [library and require] check and update the list of currently attached packages and do not reload a namespace wh...
2017 Nov 20
2
package check fail on Windows-release only?
...bandSparse, bdiag, .bdiag, c.sparseVector, condest, onenormest, .asmatrix, .dsy2mat, .dsy2dsp, .dxC2mat, .T2Cmat, ..2dge, .dense2sy, .C2nC, .nC2d, .nC2l, .diag.dsC, .solve.dgC.chol, .solve.dgC.qr, .solve.dgC.lu, diagN2U, diagU2N, .diagU2N, .diag2tT, .diag2sT, .diag2mat, drop0, expand, expm, facmul, fac2sparse, fac2Sparse, forceSymmetric, T2graph, graph2T, anyDuplicatedT, uniqTsparse, isTriangular, isDiagonal, isLDL, is.null.DN, invPerm, lu, nearPD, nnzero, formatSpMatrix, formatSparseM, .formatSparseSimple, printSpMatrix, printSpMatrix2, qrR, rankMatrix, readHB, readMM, sparse.model.matrix, sparseVector...
2020 Jul 21
3
trivial typo in ?Matrix::sparse.model.matrix.Rd
...quot;. Diff against latest SVN: >> Index: sparse.model.matrix.Rd >> =================================================================== >> --- sparse.model.matrix.Rd??? (revision 3336) >> +++ sparse.model.matrix.Rd??? (working copy) >> @@ -4,7 +4,7 @@ >> ?\alias{fac2sparse} >> ?\alias{fac2Sparse} >> ?\description{Construct a sparse model or \dQuote{design} matrix, >> -? form a formula and data frame (\code{sparse.model.matrix}) or a single >> +? from a formula and data frame (\code{sparse.model.matrix}) or a single >> ?? factor (\code...
2010 Jul 13
1
A problem about the package "lme4" in R-2.11.1
...wing problem. Attaching package: 'lme4' The following object(s) are masked from 'package:stats':     AIC Error in names(argNew)[1] <- names(formals(new))[[1]] :   replacement has length zero Calls: initial ... lmerFactorList -> lapply -> FUN -> as -> asMethod -> fac2sparse Execution halted However, when I use this package in R-2.11.0, it can work to run the simulation as I do in R-2.11.1. How could we fix this problem? Thank you so much. Sincerely, Joe [[alternative HTML version deleted]]
2017 Nov 21
0
package check fail on Windows-release only?
...ector, condest, onenormest, .asmatrix, .dsy2mat, .dsy2dsp, > .dxC2mat, .T2Cmat, ..2dge, .dense2sy, .C2nC, .nC2d, .nC2l, .diag.dsC, > .solve.dgC.chol, .solve.dgC.qr, .solve.dgC.lu, diagN2U, diagU2N, > .diagU2N, .diag2tT, .diag2sT, .diag2mat, drop0, expand, expm, facmul, > fac2sparse, fac2Sparse, forceSymmetric, T2graph, graph2T, > anyDuplicatedT, uniqTsparse, isTriangular, isDiagonal, isLDL, > is.null.DN, invPerm, lu, nearPD, nnzero, formatSpMatrix, > formatSparseM, .formatSparseSimple, printSpMatrix, printSpMatrix2, > qrR, rankMatrix, readHB, readM...
2018 Feb 08
0
sparse.model.matrix Generates Non-Existent Factor Levels if Ord.factor Columns Present
color and clarity are ordered factors, so sparse.model.matrix is generating orthogonal-polynomial contrasts (see ?contr.poly). This is by design ... what are you trying to do? Are you interested in fac2sparse? On 18-02-07 11:00 PM, Dario Strbenac wrote: > Good day, > > Sometimes, sparse.model.matrix outputs a dgCMatrix which has column names consisting of factor levels that were not in the original dataset. The first factor appears to be correctly transformed, but the following factors don...
2018 Feb 08
2
sparse.model.matrix Generates Non-Existent Factor Levels if Ord.factor Columns Present
Good day, Sometimes, sparse.model.matrix outputs a dgCMatrix which has column names consisting of factor levels that were not in the original dataset. The first factor appears to be correctly transformed, but the following factors don't. For example: diamonds <- as.data.frame(ggplot2::diamonds) > colnames(sparse.model.matrix(~ . -1, diamonds)) [1] "carat"