-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add listcol functionality #8
Comments
How did you envision this looking like in the end? Would the user be returned a data frame with a column of station ids and a column with listed station data (as in below)? We could either just show users how to do it themselves: Unnested
Nested
But as you point out, a simple TRUE/FALSE argument could be used right at the end of the weather function to apply the Is this the sort of thing you had in mind? |
Agreed completely about which is a default. And your example is almost is. But more like this.:
The thing I need to think about a little more is that we will need some conditionals depending on whether the data is hourly/daily etc. We also could also do it like this:
Which would help with manipulation. Devil is in the details here though I totally agree that default should still just be a normal dataframe - well tibble I guess. |
Yes those would be nice ways of keeping the data organized. One option would be to set the default to 'date' for hourly or daily data and 'month' or 'year' for monthly data. We could even make the We could add checks so prevent monthly data from being grouped at the daily level, but even if we didn't I don't think it would result in an error, just a list of single row data frames corresponding to the first of the month. Lots of different options, I know what you mean, by having to think about it! Alternatively, if there isn't one really good default use case, we could simply add the options to the vignette/readme, to illustrate how people can organize their data if they wish. |
This is a great idea. Do you think we should add this ahead or after a CRAN submission? |
Let's go ahead and add this before CRAN, I don't think it'll take too long, and I still have a couple of other things I need to figure out before the submission, anyway. |
Addressed with pull request #14 |
Not for upcoming CRAN submission. I'm uncertain how to ultimately implement this as some user might not like it. Perhaps just as a listcol = TRUE argument in weather().
The text was updated successfully, but these errors were encountered: