Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HYCAR-Hydro
airGR
Commits
e5da7ff1
Commit
e5da7ff1
authored
Jul 15, 2021
by
Delaigue Olivier
Browse files
fix: reorder SeriesAggreg.data.frame by date (especially for regime time series)
Refs
#133
parent
4ee024ad
Pipeline
#24995
passed with stage
in 8 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
R/SeriesAggreg.data.frame.R
View file @
e5da7ff1
...
...
@@ -184,7 +184,8 @@ SeriesAggreg.data.frame <- function(x,
all.y
=
FALSE
)
tsAggreg
<-
tsAggreg
[
tsAggreg
$
Selec
&
tsAggreg
$
DatesRini
,
]
tsAggreg
<-
tsAggreg
[,
colnames
(
TabSeries0
)]
colnames
(
tsAggreg
)[
1L
]
<-
colnames
(
x
)[
1L
]
tsAggreg
<-
tsAggreg
[
order
(
tsAggreg
$
DatesR
),
]
# reorder by date especially for regime time series
colnames
(
tsAggreg
)[
1L
]
<-
colnames
(
x
)[
1L
]
# keep original column names
return
(
tsAggreg
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment