Description Usage Arguments Value Author(s) Examples
this function is similar to R function levels
1 | ji.ds.levels(datasources = NULL, xvect = NULL)
|
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 |
an R object (factor) |
levels of xvect
Gaye, A. (amadou.gaye
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | {
# load that contains the login details
data(logindata)
# login
opals <- datashield.login(logins=logindata,assign=TRUE)
# Example 1: Get the levels of the PM_BMI_CATEGORICAL variable
ji.ds.levels(datasources=opals, xvect=quote(D$PM_BMI_CATEGORICAL))
# Example 2: Get the levels of the LAB_TSC SHOULD NOT WORK AS IT IS A CONTINUOUS VARIABLE
ji.ds.levels(datasources=opals, xvect=quote(D$LAB_TSC))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.