Hello,
You don't need apply, covariance calculations are so frequent that R or
any other statistics package already has pre-programmed functions.
This time with two vectors x and y.
set.seed(123)
n <- 3
x <- rnorm(n)
y <- rnorm(n)
# the two main diagonal values
var(x)
#> [1] 1.300025
var(y)
Hello,
First of all the plotmath in your code doesn't need paste, expression
alone will do it.
I am not sure that the following is what you want. I create the caption
beforehand, in order to make the plotting code simpler.
The asterisks/tildes make less/more space between the text line's ele
2 matches
Mail list logo