ds.exp {dsBaseClient}R Documentation

Computes the exponential function

Description

This function is similar to R function exp.

Usage

ds.exp(x = NULL, newobj = NULL, datasources = NULL)

Arguments

x

a charcater, the name of a numerical vector.

newobj

the name of the new vector.If this argument is set to NULL, the name of the new variable is the name of the input variable with the suffixe '_exp' (e.g. 'PM_BMI_CONTINUOUS_exp', if input variable's name is 'PM_BMI_CONTINUOUS')

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.

Details

this is a wrapper that calls the exponential function on the server site.

Value

nothing is returned to the client, the new object is stored on the server side.

Author(s)

Gaye, A.; Isaeva, J.

Examples

{

  # load that contains the login details
  data(logindata)

  # login and assign specific variable(s)
  myvar <- list("PM_BMI_CONTINUOUS")
  opals <- datashield.login(logins=logindata,assign=TRUE,variables=myvar)

  # compute exponential function of the 'PM_BMI_CONTINUOUS' variable
  ds.exp(x='D$PM_BMI_CONTINUOUS')

  # clear the Datashield R sessions and logout
  datashield.logout(opals)

}

[Package dsBaseClient version 4.1.0 ]