search for: sparsevector

Displaying 12 results from an estimated 12 matches for "sparsevector".

2017 Nov 20
2
package check fail on Windows-release only?
...ys: * installing *source* package 'rockchalk' ... ** package 'rockchalk' successfully unpacked and MD5 sums checked ** R ** data ** inst ** preparing package for lazy loading Warning: S3 methods 'print.sparseSummary', 'print.diagSummary', 'c.abIndex', 'c.sparseVector', 'as.array.Matrix', 'as.array.sparseVector', 'as.matrix.Matrix', 'as.matrix.sparseVector', 'as.vector.Matrix', 'as.vector.sparseVector' were declared in NAMESPACE but not found Error in namespaceExport(ns, exports) : undefined exports: %&%,...
2017 Nov 21
0
package check fail on Windows-release only?
...> ** package 'rockchalk' successfully unpacked and MD5 sums checked > ** R > ** data > ** inst > ** preparing package for lazy loading > Warning: S3 methods 'print.sparseSummary', 'print.diagSummary', > 'c.abIndex', 'c.sparseVector', 'as.array.Matrix', > 'as.array.sparseVector', 'as.matrix.Matrix', 'as.matrix.sparseVector', > 'as.vector.Matrix', 'as.vector.sparseVector' were declared in > NAMESPACE but not found > Error in namespaceExport(ns, expo...
2009 Jan 20
1
Creating a Sparse Matrix from a Sparse Vector
...x),byrow=TRUE,sparse=TRUE) When I tried the next set, I got the error "Error in Matrix(as(rep (exampleMatrix[2, ], times = nrow(exampleMatrix)), : invalid type/length (S4/12) in vector allocation": newExampleMatrix<-Matrix(as(rep(exampleMatrix[2,],times=nrow (exampleMatrix)),"sparseVector"),nrow=nrow(exampleMatrix),ncol=ncol (exampleMatrix),byrow=TRUE,sparse=TRUE) newExampleMatrix<-Matrix(as(exampleMatrix[2,],"sparseVector"),nrow=nrow (exampleMatrix),ncol=ncol(exampleMatrix),byrow=TRUE,sparse=TRUE) And finally, when I tried the next instruction, I got the error &q...
2007 May 16
3
Reshape a sparse matrix
Hi, I'd like to reshape a sparse matrix generated from the Matrix package. I can't seem to do it with the command dim(A) <- c(6,9) which works perfectly with the base package matrices, but with the sparse matrices it errors with Error in dim(A) = c(6, 9) : dim<- : invalid first argument Manipulating the Dim attribute of the sparse Matrix does not produce the desired effect. A
2016 Apr 15
0
Bug in by() function which works for some FUN argument and does not work for others
...R that had that facility available to them before it was deprecated. With a more than current version of R 3.3.0 and a modest number of loaded packages I see this: > methods(mean) [1] mean,ANY-method mean,Matrix-method mean,Raster-method [4] mean,sparseMatrix-method mean,sparseVector-method mean.Date [7] mean.default mean.difftime mean.POSIXct [10] mean.POSIXlt mean.yearmon* mean.yearqtr* [13] mean.zoo* It is your responsibility to determine whether any particular function in your version of R...
2016 Apr 16
2
Bug in by() function which works for some FUN argument and does not work for others
...ty available to them before it > was deprecated. With a more than current version of R 3.3.0 and a modest > number of loaded packages I see this: > > > methods(mean) > [1] mean,ANY-method mean,Matrix-method mean,Raster-method > [4] mean,sparseMatrix-method mean,sparseVector-method mean.Date > [7] mean.default mean.difftime mean.POSIXct > [10] mean.POSIXlt mean.yearmon* mean.yearqtr* > [13] mean.zoo* > > It is your responsibility to determine whether any particular function in > your version of R satisfie...
2016 Nov 26
3
ifelse() woes ... can we agree on a ifelse2() ?
...asses of? 'yes' and 'no'? than the current > ifelse(). > > As I said, the current proposal works for objects of class >? ? "Date", "POSIXct", "POSIXlt", "factor",? "mpfr" (pkg 'Rmpfr') > and hopefully for "sparseVector" (in a next version of the 'Matrix' pkg). > > Martin > >? ???> On Tue, Nov 15, 2016 at 3:58 AM, Martin Maechler < > maechler at stat.math.ethz.ch >? ???>> wrote: > >? ???>> Finally getting back to this : >? ???>> >? ???>> >...
2016 Nov 28
0
ifelse() woes ... can we agree on a ifelse2() ?
...nable" semantic, and your last change would do that too. My alternative should really work - for factors - for "array"s including "matrix" (as the current ifelse() does!) - for "Date", "POSIXct", "ts"(timeseries), "zoo", "sparseVector", "sparseMatrix" (*), or "mpfr", without any special code, but rather by design. *) Currently needs the R-forge version of Matrix, version 1.2-8. A bit less than an hour ago, I have updated the gist with an updated proposal ifelse2() {and the current alternatives that...
2016 Apr 17
0
Bug in by() function which works for some FUN argument and does not work for others
...at facility available to them before it was deprecated. With a more than current version of R 3.3.0 and a modest number of loaded packages I see this: > > > methods(mean) > [1] mean,ANY-method mean,Matrix-method mean,Raster-method > [4] mean,sparseMatrix-method mean,sparseVector-method mean.Date > [7] mean.default mean.difftime mean.POSIXct > [10] mean.POSIXlt mean.yearmon* mean.yearqtr* > [13] mean.zoo* > > It is your responsibility to determine whether any particular function in your version of R satisfies th...
2016 Nov 22
0
ifelse() woes ... can we agree on a ifelse2() ?
...uot;vector like" classes of 'yes' and 'no' than the current ifelse(). As I said, the current proposal works for objects of class "Date", "POSIXct", "POSIXlt", "factor", "mpfr" (pkg 'Rmpfr') and hopefully for "sparseVector" (in a next version of the 'Matrix' pkg). Martin > On Tue, Nov 15, 2016 at 3:58 AM, Martin Maechler <maechler at stat.math.ethz.ch >> wrote: >> Finally getting back to this : >> >> >>>>> Hadley Wickham <h.wickham a...
2016 Nov 15
2
ifelse() woes ... can we agree on a ifelse2() ?
All, Martin: Thanks for this and all the other things you are doing to both drive R forward and engage more with the community about things like this. Apologies for missing this discussion the first time it came around and if anything here has already been brought up, but I wonder what exactly you mean when you want recycling behavior. Specifically, based on an unrelated discussion with Henrik
2016 Apr 15
4
Bug in by() function which works for some FUN argument and does not work for others
Dear All, Thanks for your help. However, I would like to draw your attention to the following: Actually, I was replicating the Example 2.3, using the dataset "brainsize.txt" given in Section 2.3.3 ("Summarize by group") at page 55, of a famous book "R by Example" written by "Jim Albert and Maria Rizzo" published in Springers (2012) in a Use R! Series. The