View source: R/statistics-calculation-functions.R
Given a list of variables and a dataframe, make a reshaped (from wide to long) dataframe for each variable and output a list of dataframes
1 2 | reshape_statistics(data, id = "id_pixel", key = "id_date",
other_id = list("lon", "lat"))
|
data |
dplyr dataframe to be reshaped containing the variables to be used in the reshaping process |
id |
unique identifier for each pixel |
key |
key argument in tidyr::spread |
other_id |
other unique identifiers (for instance: longitude and latitude) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.