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 0.5038124 0
#> 2 2 2.5283366 0
#> 3 3 0.5490967 0
#> 4 4 0.2382129 0
#> 5 5 -1.0488931 0