Learn R Programming

pharmr (version 1.4.0)

get_observations: get_observations

Description

Get observations from dataset

Usage

get_observations(model, keep_index = FALSE)

Value

(data.frame) Observations indexed over ID and TIME

Arguments

model

(Model) Pharmpy model

keep_index

(logical) Set to TRUE if the original index should be kept. Otherwise a new index using ID and idv will be created.

See Also

get_number_of_observations : get the number of observations

get_number_of_observations_per_individual : get the number of observations per individual

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
get_observations(model)
}

Run the code above in your browser using DataLab