Skip to contents

Converts a numeric vector to a data frame with the columns required by Population: id, data, and readout_time.

Usage

as_population_data(data)

Arguments

data

numeric vector of endpoint values (one per subject).

Value

data.frame with columns: id (integer), data (numeric), readout_time (0 for all subjects).

See also

Examples

as_population_data(rnorm(5))
#>   id       data readout_time
#> 1  1 -1.6895557            0
#> 2  2  1.2394959            0
#> 3  3 -0.1089660            0
#> 4  4 -0.1172420            0
#> 5  5  0.1830826            0