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

Input years are not preserved in Epw$set() #322

Closed
hongyuanjia opened this issue Sep 5, 2020 · 0 comments · Fixed by #324
Closed

Input years are not preserved in Epw$set() #322

hongyuanjia opened this issue Sep 5, 2020 · 0 comments · Fixed by #324
Assignees
Milestone

Comments

@hongyuanjia
Copy link
Owner

library(eplusr)
data <- qs::qread("data.qs")
data[, .(year)]
#>       year
#>    1: 1989
#>    2: 1989
#>    3: 1989
#>    4: 1989
#>    5: 1989
#>   ---     
#> 8756: 1990
#> 8757: 1990
#> 8758: 1990
#> 8759: 1990
#> 8760: 1990
epw <- read_epw("SGP_Singapore.486980_IWEC.epw")
epw$set(data)
#> -- Info ------------------------------------------------------------------------
#> Data period #1 has been replaced with input data.
#> 
#>      Name StartDayOfWeek StartDay EndDay
#>  1:  Data         Sunday     1/ 1  12/31
#> --------------------------------------------------------------------------------
epw$data()[, .(year)]
#>       year
#>    1:    9
#>    2:    9
#>    3:    9
#>    4:    9
#>    5:    9
#>   ---     
#> 8756:    9
#> 8757:    9
#> 8758:    9
#> 8759:    9
#> 8760:    9

Created on 2020-09-05 by the reprex package (v0.3.0)

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

Successfully merging a pull request may close this issue.

1 participant