do_steps | R Documentation |
The 'do_steps' function calculates steps for uneven data points represented by vectors 'x' and 'y'.
do_steps(x, y, return_df = T)
x |
Numeric vector representing the x-coordinates. |
y |
Numeric vector representing the y-coordinates. |
return_df |
Logical. If 'TRUE', the function returns a data frame; otherwise, it returns a list. |
A data frame or a list containing the modified 'x' and 'y' coordinates.
x <- c(1, 2, 3, 4, 5)
y <- c(10, 20, 30, 40, 50)
do_steps(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.