generic_df: Return a standard dataframe with two columns (x and y)

Description Usage Arguments Value Examples

View source: R/peak_pick.R

Description

Return a standard dataframe with two columns (x and y)

Usage

1
generic_df(df, x, y)

Arguments

df

Dataframe to be converted

x

Column containing x-coordinates

y

Column containing y-coordinates

Value

A standard tibble with the given data in two columns (x and y)

Examples

1
2
3
library(tidyverse)
df <- tibble(x1 = seq(0, 5, 0.1), y1 = sin(x))
generic_df(df, x1, y1)

SPOMAN/osc documentation built on May 14, 2019, 7:41 a.m.