increase_numeric_resolution | R Documentation |
Increase numeric vector resolution
increase_numeric_resolution(
y,
n,
method = c("interpolate", "repeat", "divide")
)
y |
original numeric vector |
n |
integer, number of intra-values (counting the original value as the first one) |
method |
character, being |
if we have a vector v = c(1, 2), and we choose the interpolate
method,
then:
increase_numeric_resolution(v, 4, 'interpolate')
returns c(1, 1.25, 1.5, 1.75, 2)
if we choose the repeat
method, then:
increase_numeric_resolution(v, 4, 'repeat')
returns c(1, 1, 1, 1, 2)
numeric vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.