Description Usage Arguments Value Functions Examples
Merge a list of imported data temporally or ordinally. This aligns data horizontally by appending and merging new columns to a common data set.
1 2 3 4 5 | ordinal_align(...)
temporal_align(fps = 30, keep_frame_num = TRUE, ...)
horz_merge_datavyu_list(.list, .f, ..., fps = NULL)
|
... |
additional arguments passed to |
fps |
a common framerate to use for alignment. Only set if you want to align
temporally. If not set then it will default to ordinal alignment. For
|
keep_frame_num |
Keep the frame_number column, which will result in a much larger
data set. If |
.list |
a nested list returned from |
.f |
a function to apply to each data set before anything is done to the data. |
a data.table with aligned data.
ordinal_align
: Align and merge data by cell number (ordinal
alignment). Having a common ordinal number across Datavyu columns may not have much
meaning, but this will allow you to append columns within a single data set.
temporal_align
: This will align several Datavyu columns using a
common framerate. You have the option to set the framerate using fps
. The lower
the frame rate, the less likely two events will line up in time. This is because
the timestamps are converted to frame numbers based on chunking them into discrete bins. The
larger the fps, the larger the bins, and more likely two events will line up in
time.
horz_merge_datavyu_list
: Merge a list of imported data temporally or ordinally
and align horizontally by appending new columns to a common data set.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
# set folder path if needed, otherwise use default path with example data.
# options(datavyur.folder="mydatafolder")
#-- Align by a common ordinal number
ord_aligned <- ordinal_align()
# -- Align by a common frame number
# example data with no arguments
ex_data_aligned <- temporal_align(fps=10)
ex_data_aligned_no_frames <- temporal_align(fps=10, keep_frame_num=FALSE)
# example data selecting only one of the columns
ex_data_aligned2 <- temporal_align(columns="childhands")
# -- Align by ordinal or frame but from a list of data objects.
.list <- import_datavyu_to_list()
ord_aligned <- horz_merge_datavyu_list(.list)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.