ww_wide_to_long: Transform the raw public wastewater data from wide to long...

View source: R/processingData.R

ww_wide_to_longR Documentation

Transform the raw public wastewater data from wide to long format

Description

week is the week of the year and is obtained using the ISOweek function in the package of the same name.

Usage

ww_wide_to_long(dat, site_column, show.warning = TRUE)

Arguments

dat

The dataset from the function read_public_data()

Details

For 01/01/2022 (a Saturday), it is allocated to week 52 in 2021. However, day, indicating the day of the year, is 1 and month, the month of the year, is 1. If the day (or the month) column is used as time_index for the analysis, care needs to be taken! For different date definitions, see https://stackoverflow.com/questions/45549449/transform-year-week-to-date-object/45587644#45587644

Value

A data matrix


gqlNU/publicWW documentation built on Oct. 15, 2022, 1:17 a.m.