View source: R/event_creation.R
read_events | R Documentation |
Reads a file in table format and attempts to coerce it to an event table.
read_events(file, from.col = 1, to.col = 2, sep = "", header = TRUE, ...)
file |
Name, |
from.col, to.col |
Names or indices of the columns containing event endpoints. Values are swapped as needed to ensure that |
sep |
Character separating values on each line of the file. If |
header |
Logical value indicating whether the file contains column names as its first line. If |
... |
Additional arguments, of the form |
The file is read into R by calling read.table
. Any of its arguments can be set by passing additional tag = value
pairs. from.col
and to.col
are renamed to "from" and "to" as needed. Since these column names must be unique, other columns cannot also be called "from" or "to".
read.table
.
events
and as_events
for creating event tables from existing objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.