powered by
covariance computes the covariance matrix and vectorize it.
covariance
covariance(population, variables)
tbl with grouping (metadata) and observation variables.
character vector specifying observation variables.
data frame of 1 row comprising vectorized covariance matrix.
# NOT RUN { population <- tibble::tibble( x = rnorm(30), y = rnorm(30), z = rnorm(30) ) variables <- c("x", "y") covariance(population, variables) # }
Run the code above in your browser using DataLab