mica.study.populations {micar}R Documentation

Get the study populations

Description

Get the study populations. Note that the populations are not fetched directly, they are extracted from study search results.

Usage

mica.study.populations(
  mica,
  query = "study()",
  select = list("populations.name", "populations.description", "populations.model"),
  sort = list("id"),
  from = 0,
  limit = 100,
  locale = "en",
  df = TRUE
)

Arguments

mica

A Mica object

query

The search query

select

The fields to be extracted

sort

The fields to sort by

from

From item

limit

Max number of items. Note that this limit applies to the studies that are fetched, the resulting count of populations will be higher.

locale

The language for labels (default is "en")

df

Return a data.frame (default is TRUE)

See Also

Other studies functions: mica.studies(), mica.study.dces()

Examples

## Not run: 
m <- mica.login("https://mica-demo.obiba.org")
mica.study.populations(m, query="study(in(Mica_study.methods-design,cohort_study))")
mica.logout(m)

## End(Not run)

[Package micar version 1.1.2 Index]