ds.names {dsBaseClient} | R Documentation |
This function is similar to the R function mean
.
ds.names(x = NULL, datasources = NULL)
x |
a character, the name of an object of type list. |
datasources |
a list of opal object(s) obtained
after login in to opal servers; these objects hold also
the data assign to R, as |
In DataSHIELD the use of this function is restricted to objects of type list.
The names of the list's elements for each study
Gaye, A.
{ # load the login data data(logindata) # login and assign some variables to R myvar <- list("DIS_DIAB","PM_BMI_CONTINUOUS","LAB_HDL", "GENDER") opals <- datashield.login(logins=logindata,assign=TRUE,variables=myvar) # generates subset tables from the table assigned above (by default the table name is 'D') ds.subsetByClass(x='D', subsets='subclasses') # the above object 'subsets' is a list, let us display the names of elements in 'subsets' ds.names('subclasses') # clear the Datashield R sessions and logout datashield.logout(opals) }