Learn R Programming

dsBase

DataSHIELD server side base R library.

About

DataSHIELD is a software package which allows you to do non-disclosive federated analysis on sensitive data. Our website (https://www.datashield.org) has in depth descriptions of what it is, how it works and how to install it. A key point to highlight is that DataSHIELD has a client-server infrastructure, so the dsBase package (https://github.com/datashield/dsBase) needs to be used in conjuction with the dsBaseClient package (https://github.com/datashield/dsBaseClient) - trying to use one without the other makes no sense.

Detailed instructions on how to install DataSHIELD are at https://wiki.datashield.org/. The code here is organised as:

LocationWhat is it?
obiba CRANWhere you probably should install DataSHIELD from.
releasesStable releases.
master branchMostly in sync with the latest release, changes rarely.

Copy Link

Version

Install

install.packages('dsBase')

Version

6.3.3

License

GPL-3

Maintainer

Stuart Wheater

Last Published

July 19th, 2025

Functions in dsBase (6.3.3)

corTestDS

Tests for correlation between paired samples
colnamesDS

Returns the column names of a data frame or matrix
glmDS2

glmDS2 called by ds.glm
cbindDS

cbindDS called by ds.cbind
dataFrameDS

dataFrameDS called by ds.dataFrame
changeRefGroupDS

Changes a reference level of a factor
boxPlotGGDS

Create the identity stats and necessary data to draw a plot on the client
blackBoxRanksDS

Secure ranking of "V2BR" (vector to be ranked) across all sources
dataFrameFillDS

dataFrameFillDS
glmPredictDS.ag

predict regression responses from a glm object
histogramDS1

returns the minimum and the maximum of the input numeric vector
glmSummaryDS.as

summarize a glm object on the serverside
extractQuantilesDS2

Secure ranking of "V2BR" (vector to be ranked) across all sources and use of these ranks to estimate global quantiles across all studies
completeCasesDS

completeCasesDS: an assign function called by ds.completeCases
covDS

Computes the sum of each variable and the sum of products for each pair of variables
glmSummaryDS.ag

summarize a glm object on the serverside
corDS

Computes the sum of each variable and the sum of products for each pair of variables
gamlssDS

gamlssDS an aggregate function called by ds.galmss
listDS

Coerce objects into a list
cDS

Concatenates objects into a vector or list
dataFrameSortDS

Sorting and reordering data frames, vectors or matrices
bp_standardsDS

Calculates Blood pressure z-scores
dataFrameSubsetDS1

dataFrameSubsetDS1 an aggregate function called by ds.dataFrameSubset
matrixMultDS

matrixMultDS serverside assign function called by ds.matrixMult
lexisDS3

@title lexisDS3
histogramDS2

Computes a histogram of the input variable without plotting.
lmerSLMADS.assign

Fitting linear mixed effect models - serverside function
matrixTransposeDS

matrixTransposeDS serverside assign function called by ds.matrixTranspose
lexisDS2

lexisDS2
lmerSLMADS2

Fitting linear mixed effect models - serverside function
glmSLMADS1

Fit a Generalized Linear Model (GLM) with pooling via Study Level Meta-Analysis (SLMA)
glmSLMADS2

Fit a Generalized Linear Model (GLM) with pooling via Study Level Meta-Analysis (SLMA)
listDisclosureSettingsDS

listDisclosureSettingsDS
dataFrameSubsetDS2

dataFrameSubsetDS2 an assign function called by ds.dataFrameSubset
densityGridDS

Generates a density grid with or without a priori defined limits
matrixDetDS2

matrixDetDS assign function called by ds.matrixDet
isValidDS

Checks if an input is valid
matrixDiagDS

matrixDiagDS assign function called by ds.matrixDiag
dimDS

Returns the dimension of a data frame or matrix
dmtC2SDS

Copy a clientside data.frame, matrix or tibble (DMT) to the serverside.
minMaxRandDS

Secure ranking of "V2BR" (vector to be ranked) across all sources
rangeDS

returns the minimum and maximum of a numeric vector
kurtosisDS1

Calculates the kurtosis of a numeric variable
namesDS

Return the names of a list object
rNormDS

rNormDS serverside assign function
repDS

repDS called by ds.rep
rBinomDS

rBinomDS serverside assign function
replaceNaDS

Replaces the missing values in a vector
elsplineDS

Basis for a piecewise linear spline with meaningful coefficients
rowColCalcDS

Computes sums and means of rows or columns of numeric arrays
rmDS

rmDS an aggregate function called by ds.rm
ranksSecureDS2

Secure ranking of "V2BR" (vector to be ranked) across all sources
ranksSecureDS3

Secure ranking of "V2BR" (vector to be ranked) across all sources
extractQuantilesDS1

Secure ranking of "V2BR" (vector to be ranked) across all sources and use of these ranks to estimate global quantiles across all studies
glmPredictDS.as

predict regression responses from a glm object
glmSLMADS.assign

Fit a Generalized Linear Model (GLM) with pooling via Study Level Meta-Analysis (SLMA)
glmerSLMADS.assign

Fitting generalized linear mixed effect models - serverside function
glmerSLMADS2

Fitting generalized linear mixed effect models - serverside function
unListDS

unListDS a serverside assign function called by ds.unList
vectorDS

Creates a vector on the server-side.
testObjExistsDS

testObjExistsDS
lexisDS1

lexisDS1
levelsDS

Returns the levels of a factor vector
lsDS

lists all objects on a serverside environment
nsDS

Generate a Basis Matrix for Natural Cubic Splines
isNaDS

Checks if a vector is empty
miceDS

Aggregate function called by ds.mice
matrixDS

matrixDS assign function called by ds.matrix
metadataDS

Returns the metadata, if any, about the specified variable
matrixDetDS1

matrixDetDS aggregate function called by ds.matrixDet.report
igb_standardsDS

Converts birth measurements to intergrowth z-scores/centiles
skewnessDS1

Calculates the skewness of a numeric variable
skewnessDS2

Calculates the skewness of a numeric variable
tableDS.assign

tableDS.assign is the serverside assign function called by ds.table
ranksSecureDS4

Secure ranking of "V2BR" (vector to be ranked) across all sources
ranksSecureDS1

Secure ranking of "V2BR" (vector to be ranked) across all sources
ranksSecureDS5

Secure ranking of "V2BR" (vector to be ranked) across all sources
mergeDS

mergeDS (assign function) called by ds.merge
lsplineDS

Basis for a piecewise linear spline with meaningful coefficients
messageDS

messageDS
numNaDS

Counts the number of missing values
rPoisDS

rPoisDS serverside assign function
tableDS2

tableDS is the second of two serverside aggregate functions called by ds.table
rUnifDS

rUnifDS serverside assign function
rbindDS

rbindDS called by ds.rbind
seqDS

seqDS a serverside assign function called by ds.seq
setSeedDS

setSeedDs called by ds.setSeed, ds.rNorm, ds.rUnif, ds.rPois and ds.rBinom
reShapeDS

reShapeDS (assign function) called by ds.reShape
lengthDS

Returns the length of a vector or list
hetcorDS

Heterogeneous Correlation Matrix
heatmapPlotDS

Calculates the coordinates of the centroid of each n nearest neighbours
kurtosisDS2

Calculates the kurtosis of a numeric variable
glmDS1

glmDS1 called by ds.glm
getWGSRDS

Computes the WHO Growth Reference z-scores of anthropometric data
tapplyDS

tapplyDS called by ds.tapply
sqrtDS

Computes the square root values of the input variable
uniqueDS

Applies the unique method to a server-side variable.
tapplyDS.assign

tapplyDS.assign called by ds.tapply.assign
varDS

Computes the variance of vector
subsetByClassDS

Breaks down a dataframe or a factor into its sub-classes
matrixInvertDS

matrixInvertDS serverside assign function called by ds.matrixInvert
matrixDimnamesDS

matrixDimnamesDS assign function called by ds.matrixDimnames
recodeLevelsDS

Recodes the levels of a categorical variables
meanDS

Computes statistical mean of a vectores
recodeValuesDS

recodeValuesDS an assign function called by ds.recodeValues
subsetDS

Generates a valid subset of a table or a vector
table1DDS

Creates 1-dimensional contingency tables
meanSdGpDS

MeanSdGpDS
quantileMeanDS

Generates quantiles and mean information without maximum and minimum
qlsplineDS

Basis for a piecewise linear spline with meaningful coefficients
sampleDS

random sampling and permuting of vectors, dataframes and matrices
table2DDS

table2DDS (aggregate function) called by ds.table2D
tableDS

tableDS is the first of two serverside aggregate functions called by ds.table
scatterPlotDS

Calculates the coordinates of the data to be plot
asFactorDS2

Converts a numeric vector into a factor
asIntegerDS

Coerces an R object into class integer
BooleDS

BooleDS
asLogicalDS

Coerces an R object into class numeric
asListDS

asListDS a serverside aggregate function called by ds.asList
absDS

Computes the absolute values of the input variable
asFactorSimpleDS

Converts a numeric vector into a factor
asFactorDS1

Determines the levels of the input variable in each single study
asDataMatrixDS

asDataMatrixDS a serverside assign function called by ds.asDataMatrix
asCharacterDS

Coerces an R object into class character
asNumericDS

Coerces an R object into class numeric
asMatrixDS

Coerces an R object into a matrix
boxPlotGG_data_TreatmentDS

Arrange data frame to pass it to the boxplot function
boxPlotGG_data_Treatment_numericDS

Arrange vector to pass it to the boxplot function
aucDS

aucDS an aggregate function called by ds.auc
classDS

Returns the class of an object
blackBoxDS

Secure ranking of "V2BR" (vector to be ranked) across all sources
checkNegValueDS

Checks if a numeric variable has negative values
checkPermissivePrivacyControlLevel

checkPermissivePrivacyControlLevel