Skip to content
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

feature request: a more dplyr-friendly data output #350

Open
jordansread opened this issue Jun 10, 2017 · 1 comment
Open

feature request: a more dplyr-friendly data output #350

jordansread opened this issue Jun 10, 2017 · 1 comment

Comments

@jordansread
Copy link
Contributor

jordansread commented Jun 10, 2017

Long table instead of (mostly) a wide table:

current output

head(prism.data)
    DateTime Acadia Amistad Olympic Rocky Sequoia Voyageurs variable statistic units
1 1980-01-01  1.525 17.9300   -0.52 -4.73  1.6825    -10.29      tmx      MEAN  degC
2 1980-02-01 -0.265 19.4800    2.72 -1.45  2.8375     -7.46      tmx      MEAN  degC
3 1980-03-01  4.165 24.2975    3.01 -0.79  1.1975     -1.30      tmx      MEAN  degC
4 1980-04-01 12.020 28.9525    8.08  3.87  6.9025     13.72      tmx      MEAN  degC
5 1980-05-01 19.650 31.4950    9.27  8.18  6.7450     22.60      tmx      MEAN  degC
6 1980-06-01 21.605 37.0050   10.43 18.13 12.7325     23.24      tmx      MEAN  degC

desired

head(prism.data)
    DateTime feature    value variable statistic units
1 1980-01-01  Acadia    1.525      tmx      MEAN  degC
2 1980-02-01  Acadia   -0.265      tmx      MEAN  degC
3 1980-03-01  Acadia    4.165      tmx      MEAN  degC
4 1980-04-01  Acadia   12.020      tmx      MEAN  degC
5 1980-05-01  Acadia   19.650      tmx      MEAN  degC
6 1980-06-01  Acadia   21.605      tmx      MEAN  degC
@jordansread
Copy link
Contributor Author

could be a param on result()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant