Coerce object to data.frame
Examples
as.et(data.frame(time = c(0, 12), amt = c(100, 50), evid = 1))
#> ── EventTable with 2 records ──
#> 2 dosing records (see value$get.dosing(); add with add.dosing or et)
#> 0 observation times (see value$get.sampling(); add with add.sampling or et)
#> ── First part of value: ──
#> # A tibble: 2 × 3
#> time amt evid
#> <dbl> <dbl> <evid>
#> 1 0 100 1:Dose (Add)
#> 2 12 50 1:Dose (Add)
