Description Usage Arguments Value Author(s) Examples
this function is similar to R function is.factor
1 | ji.ds.is.factor(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 |
a vector to be tested |
a logic value (TRUE if xvect is numeric)
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: Test whether LAB_TSC variable is of type "factor"
ji.ds.is.factor(datasources=opals, xvect=quote(D$LAB_TSC))
# Example 2: Test whether PM_BMI_CATEGORICAL variable is of type "factor"
ji.ds.is.factor(datasources=opals, xvect=quote(D$PM_BMI_CATEGORICAL))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.