am_pivot_longer: Reshape Column-Based Data to Long Format
Description
This function automatically reshapes wide (column-based) data into a long format akin to the format of the raw data coming from the database (am_data(..., wide = FALSE)).
It can also be used as a general purpose reshaping command - with an additional capability to handle variable labels.
# \donttest{# Return all indicators for Kenya and Nigeria from the year 2000 onwardsdata <- am_data(c("KEN", "NGA"), from = 2000)
am_pivot_longer(data)
# }