reshape_stats_df: Reshape a single dataframe (from wide to long)

Description Usage Arguments Details

View source: R/statistics-calculation-functions.R

Description

This function reshapes a dataframe from the following format: lat lon id_pixel id_date avg

Usage

1
2
reshape_stats_df(value, data, id = "id_pixel", key = "id_date",
  other_id = list("lon", "lat"))

Arguments

value

value argument in tidyr::spread

data

dplyr dataframe to be reshaped

id

unique identifier for each pixel. Must be a character. If more than one unique identifier is available, then place the other unique identifiers in the other_id list.

key

key argument in tidyr::spread

other_id

other unique identifiers (for instance: longitude and latitude)

Details

to the following format lat lon id_pixel id_date_1 id_date_2 ... avg_11 avg_12 ...


pegoraro/qchlorophyll documentation built on May 24, 2019, 11:46 p.m.