View source: R/post_alignment.R
mapIdxToTime | R Documentation |
Takes a time vector and index vector of same length. This function create a
new time vector given indices specified in idx
.
mapIdxToTime(timeVec, idx)
timeVec |
A numeric vector |
idx |
An integer vector |
A mutated time vector
Shubham Gupta, shubh.gupta@mail.utoronto.ca
ORCID: 0000-0003-3500-8152
License: (c) Author (2019) + GPL-3 Date: 2019-12-13
timeVec <- c(1.3,5.6,7.8)
idx <- c(NA, NA, 1L, 2L, NA, NA, 3L, NA)
mapIdxToTime(timeVec, idx) # c(NA, NA, 1.3, 5.6, 6.333, 7.067, 7.8, NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.