upsamplefill | R Documentation |
Upsample and fill with given values or copies of the vector elements.
upsamplefill(x, v, copy = FALSE)
x |
input data, specified as a numeric vector or matrix. In case of a vector it represents a single signal; in case of a matrix each column is a signal. |
v |
vector of values to be placed between the elements of |
copy |
logical. If TRUE then |
upsampled vector or matrix
Juan Pablo Carbajal, carbajal@ifi.uzh.ch.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
upsample
u <- upsamplefill(diag(2), 2, TRUE)
u <- upsamplefill(diag(2), rep(-1, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.