simp_xts: put a tidy data frame with identfying columns such as a...

Description Usage Arguments Details

View source: R/tidy_xts.R

Description

x is a tidy dataframe with variables as columns to_exclude a character vector of columns to exclude in the gather step such as c("date", "area_sh") creates a character vector of columns to exclude in the gather step I ended up not going this route, and instead requiring the character vector as an argument, but this is still a useful example of what's possible to_exclude <- c("date", interp(geo_code))

Usage

1
simp_xts(x, to_exclude)

Arguments

to_exclude

Details

Still requires that one of the columns be titled area_sh. I guess I left that part hard coded.

based on example from: http://stackoverflow.com/questions/28911496/exclusions-with-when-using-string-versions-underscore-suffix-such-as-gather

when working with BLS data I had to add the following step before read.zoo because I was getting an index error as.data.frame()


aranryan/arlodr documentation built on Oct. 8, 2020, 12:46 p.m.