do_steps: Calculate Steps for Uneven Data Points

View source: R/do_steps.R

do_stepsR Documentation

Calculate Steps for Uneven Data Points

Description

The 'do_steps' function calculates steps for uneven data points represented by vectors 'x' and 'y'.

Usage

do_steps(x, y, return_df = T)

Arguments

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.

Value

A data frame or a list containing the modified 'x' and 'y' coordinates.

Examples

x <- c(1, 2, 3, 4, 5)
y <- c(10, 20, 30, 40, 50)
do_steps(x, y)


mbannert/dropR documentation built on March 28, 2024, 2:12 p.m.