isDataEncodedDS: check some R objects are suitably encoded

Description Usage Arguments Details Value

View source: R/isDataEncodedDS.R

Description

check some R objects are suitably encoded

Usage

1
2
3
4
5
isDataEncodedDS(
  data.server = NULL,
  data.encoded = NULL,
  data.held.in.server = NULL
)

Arguments

data.server

- character argument representing the name of a data frame with the original data

data.encoded

- character argument representing the name of a data frame with the encoded data

data.held.in.server

- character argument representing the datasets held in a DataSHIELD server as a data frame

Details

This server function verifies the following rules are applied to the encoded data against (1) a server variable and (2) a datasets held in the server itself.

1. No object is identical 2. None of values the server variable is present in the encoded values 3. All the values are numeric 4. The server data and the encoded data are both significantly different (T-test and Mann-Whitney Test, p = 0.99) 5. None of the values are within the limit set by the non-disclosure option dsShareServer.near.equal.limit

Additionally the encoded data must hold this condition against the server variable:

6. The encoded data has a greater number of columns than the server variable

Value

TRUE if the encoding is suitable. Otherwise false.


patRyserWelch8/dsShareServerNewVersion documentation built on May 29, 2021, 7:42 a.m.