Description Usage Arguments Value Author(s) Examples
Computes the variance of a vector or matrix
1 |
x |
a numeric vector, matrix or data frame. |
y |
|
a single value if x
and y
are vectors and a
matrix otherwise
Isaeva, J.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# load the file that contains the login details
library(opal)
data(logindata)
# login and assign a numeric variable to R
myvar <- list("LAB_TSC","LAB_TRIG")
opals <- datashield.login(logins=logindata,assign=TRUE,variables=myvar)
# compute the variance of LAB_TSC
stat.var <- datashield.aggregate(opals, quote(ji.var.ds(D$LAB_TSC)))
# compute the variance of matrix (LAB_TSC,LAB_TRIG)
datashield.assign(opals,'dummy', quote(cbind(D$LAB_TSC,D$LAB_TRIG)))
stat.var <- datashield.aggregate(opals, quote(ji.var.ds(dummy)))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.