if (FALSE) {
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
# with project context
opal.sql(o,
'select avg(LAB_HDL) as HDL_AVG, GENDER
from CNSIM1
where LAB_HDL is not null
group by GENDER',
'CNSIM')
# without project context
opal.sql(o,
'select avg(LAB_HDL) as HDL_AVG, GENDER
from `CNSIM.CNSIM1`
where LAB_HDL is not null
group by GENDER')
opal.logout(o)
}
Run the code above in your browser using DataLab