Create a Population-Compatible Data Frame from a Vector
as_population_data.RdConverts a numeric vector to a data frame with the columns required by
Population: id, data, and readout_time.
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