dssCov: The covariance matrix of a data frame or matrix

Description Usage Arguments Value

View source: R/dssCov.R

Description

The covariance matrix of a data frame or matrix

Usage

1
2
3
4
5
6
7
8
dssCov(
  x,
  collist = NULL,
  type = "combine",
  async = TRUE,
  wait = TRUE,
  datasources = NULL
)

Arguments

x

a character name of the data frame

collist

a vector of columns for the covariances. They must exist in x. If null, all the *numeric* columns from x will be used.

type

a character which represents the type of analysis to carry out. If type is set to 'combine', global column means are calculated if type is set to 'split', the column means are calculated separately for each node.

async

a logical, see datashield.aggregate

wait

a logical, see datashield.aggregate

datasources

a list of opal objects obtained after logging into the opal servers (see datashield.login)

Value

a list with one element for each node (or one $global element if type='combine'). Each element contains a vector with the respective column means, the covariance matrix and the number of rows


IulianD/dsSwissKnifeClient documentation built on June 23, 2020, 4:38 p.m.