transform_data: Transform data frame based on row and column definitions

View source: R/main.R

transform_dataR Documentation

Transform data frame based on row and column definitions

Description

Transform data frame based on row and column definitions

Usage

transform_data(data, row_column, col_column, value_columns = c("Time"))

Arguments

data

data.frame with rows and columns

row_column

string the column that contains the values for the transformed row

col_column

string the column that contains the values for the transformed columns

ignored_columns

array list of columns to ignore as value columns

Value

a data frame that has a row for each entry of the values in the row_column and columns for each value of the col_column

Examples

new_data <- transform_data(data, "Date", "Category")

tud-ise/rescuetime-r-wrapper documentation built on May 15, 2023, 6:26 a.m.