ji.ds.log: Computes logarithms, by default natural logarithms

Description Usage Arguments Value Author(s) Examples

Description

This function is similar to R function log.

Usage

1
2
  ji.ds.log(datasources = NULL, xvect = NULL,
    base = exp(1), newobj = 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.

xvect

a vector.

newobj

the name of the new variable. If this argument is set to NULL, the name of the new variable is the name of the input variable with the suffixe '_log' (e.g. 'LAB_TSC_log', if input variable's name is 'LAB_TSC')

Value

a message is displayed when the action is completed.

Author(s)

Gaye, A. (amadou.gaye

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{

# load that contains the login details
data(logindata)

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

# Compute natural logarithm of LAB_TSC
ji.ds.log(datasources=opals, xvect=quote(D$LAB_TSC))

# Compute natural logarithm of LAB_TSC with base 2
ji.ds.log(datasources=opals, xvect=quote(D$LAB_TSC), base=2)

}

datashield/ji.dev.cl documentation built on May 14, 2019, 7:52 p.m.