as.ev | R Documentation |
Use this function to convert a data frame to an event object.
as.ev(x, ...)
## S4 method for signature 'data.frame'
as.ev(x, keep_id = TRUE, clean = FALSE, ...)
## S4 method for signature 'ev'
as.ev(x, ...)
x |
an object to coerce. |
... |
not used. |
keep_id |
if |
clean |
if |
If CMT
(or cmt
) is missing from the input, it will be set to 1
in the event object.
If TIME
(or time
) is missing from the input, it will be set to
0 in the event object.
If EVID
(or evid
) is missing from the input, it will be set to
1 in the event object.
An object with class ev.
data <- data.frame(AMT = 100)
as.ev(data)
as.ev(data, clean = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.