subsetHelper {dsBaseClient}R Documentation

Compares subset and original object sizes and eventually carries out subsetting

Description

This is an internal function.

Usage

subsetHelper(dts, data, rs = NULL, cs = NULL)

Arguments

datasources

a list of opal object(s) obtained after login in to opal servers; these objects hold also the data assign to R, as dataframe, from opal datasources.

data

a string character, the name of the dataframe or the factor vector and the range of the subset.

rs

a vector of two integers, the indices of the rows de extract.

cs

a vector of two integers or one or more characters.

Details

This function is called by the function 'ds.subset' to ensure that the requested subset is not larger than the original object.

Value

a message or the class of the object if the object has the same class in all studies.


[Package dsBaseClient version 4.1.0 ]