Description Usage Arguments Value Examples
This is a low-level function, mostly for use internally by other functions. There aren't many reasons to use this. Create object containing table data and metadata. The object can be used as a dataframe, and the metadata can be accessed with the functions: segment.seg, segment.start_time, segment.filename
1 2 | segment.create(states, dwells, seg = 1, start_time = 0,
name = "burst", ignore_errors = FALSE)
|
states |
a vector of states |
dwells |
a vector of dwell durations (same length as states) |
seg |
The segment number. Defaults to 1 |
start_time |
When the dwells began. Defaults to 0 |
name |
Suffix-less version of the original filename. 60uM.dwt -> '60uM' |
ignore_errors |
Do not report faulty segments (not many reasons to do this) |
The segment object: A dataframe with extra metadata.
1 2 3 4 5 6 | # It's more likely that you created states or dwells with some function
states <- c(0, 1, 0, 1, 0, 1, 0, 1, 0, 1)
dwells <- c(0.1, 1.1, 0.5, 0.2, 1.0, 1.1, 0.6, 1.1, 0.8, 1.1)
my_burst <- segment.create(states, dwells, seg=1, start_time=0, name="example_segment")
segment.name(my_burst)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.