transform_data | R Documentation |
Transform data frame based on row and column definitions
transform_data(data, row_column, col_column, value_columns = c("Time"))
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 |
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
new_data <- transform_data(data, "Date", "Category")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.