Coerce an object to class ev
as.ev(x, ...)
# S4 method for data.frame
as.ev(x, keep_id = TRUE, clean = FALSE, ...)
# S4 method for ev
as.ev(x, ...)an object to coerce
not used
if TRUE, ID column is retained if it exists
if TRUE, only dosing or ID information is retained in
the result
data <- data.frame(amt = 100)
as.ev(data)
#> Events:
#> time amt cmt evid
#> 1 0 100 1 1