Is their any BASE function other than crossprod to simply do (.1*.3)+(.2*.4) and output .11 for my data.frame below?
NOTE: This is a toy example, the data.frame can have any number of columns.
x = data.frame(a = c(.1, .2), b = c(.3, .4))
# Desired Output
(.1*.3)+(.2*.4) #= .11
crossprod(as.matrix(x))
# Current output
a b
a 0.05 0.11
b 0.11 0.25