covidcast_longer: Pivot aggregated signals between "wide" and "long" formats

View source: R/wrangle.R

covidcast_longerR Documentation

Pivot aggregated signals between "wide" and "long" formats

Description

These functions take signals returned from aggregate_signals() and convert between formats. covidcast_longer() takes the output of aggregate_signals(..., format = "wide") and converts it to "long" format, while covidcast_wider() takes the output of aggregate_signals(..., format = "long") and converts it to "wide" format.

Usage

covidcast_longer(x)

covidcast_wider(x)

Arguments

x

A covidcast_signal_wide or covidcast_signal_long object, as returned from aggregate_signals() with the respective format argument.

Value

The object pivoted into the opposite form, i.e. as if aggregate_signals() had been called in the first place with that format argument.

See Also

covidcast_signals()


covidcast documentation built on Oct. 7, 2022, 1:06 a.m.