Closed PeteHaitch closed 6 years ago
Hi Kylie,
Would you consider making some (or all of) matter(), matter_*(), and as.matter() support automatic propagation of dimnames?
matter()
matter_*()
as.matter()
dimnames
library(matter) #> Loading required package: biglm #> Loading required package: DBI #> #> Attaching package: 'matter' #> The following objects are masked from 'package:base': #> #> apply, scale x <- matrix(1:10, ncol = 2, dimnames = list(NULL, c("A", "B"))) dimnames(x) #> [[1]] #> NULL #> #> [[2]] #> [1] "A" "B" dimnames(as.matter(x)) #> NULL dimnames(matter(x)) #> NULL dimnames(matter_mat(x)) #> NULL
Thanks, Pete
That's a good idea, yes. I'll add it to my todos.
Using as.matter() should retain names and dimnames where appropriate now in >= v1.3.6.
Hi Kylie,
Would you consider making some (or all of)
matter()
,matter_*()
, andas.matter()
support automatic propagation ofdimnames
?Thanks, Pete