opal.attribute_values: Get a vector of values

Description Usage Arguments See Also Examples

View source: R/opal.datasource.R

Description

Get a vector of values (for each locale) matching the given attribute namespace and name. Vector is null if no such attribute is found.

Usage

1
opal.attribute_values(attributes, namespace = NULL, name = "label")

Arguments

attributes

A list of attributes, usually variable or category attributes.

namespace

Optional attribute namespace.

name

Required attribute name.

See Also

Other datasource functions: opal.annotate(), opal.annotations(), opal.datasources(), opal.datasource(), opal.tables(), opal.table(), opal.valueset(), opal.variables(), opal.variable()

Examples

1
2
3
4
5
6
7
## Not run: 
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
var <- opal.variable(o, 'datashield', 'CNSIM1', 'GENDER')
opal.attribute_values(var$attributes)
opal.logout(o)

## End(Not run)

opalr documentation built on Oct. 26, 2021, 5:06 p.m.