Description Usage Arguments Value Author(s) Examples
This function is similar to R function log
.
1 2 |
datasources |
a list of opal object(s) obtained
after login in to opal servers; these objects hold also
the data assign to R, as |
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') |
a message is displayed when the action is completed.
Gaye, A. (amadou.gaye
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.