Hello,
I can't get to make this work. I would like to multiply every row (case) of the data.frame (or datatable....) "ri_data" with matrix "gew", that I become 6 new variables, which I want to compare group dependent.
``` r
#make data
group<-c("A", "B", "C")
a<-c(1, 2, 3)
b<-c(2, 3, 4)
c<-c(3, 4, 5)
d<-c(4, 5, 6)
e<-c(5, 6, 7)
f<-c(6, 7, 8)
ri_data <- data.frame(a, b, c, d, e, f, group)
gew <- matrix(data=1:36, nrow=6, ncol=6)
Created on 2022-02-03 by the reprex package (v2.0.1)
Thanks for help!