Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rpackages
IDF
Commits
22e9829c
Commit
22e9829c
authored
Jul 23, 2019
by
Jana Ulrich
Browse files
change in IDF.agg add year to output
parent
d0324c25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
R/IDF.R
R/IDF.R
+2
-1
No files found.
R/IDF.R
View file @
22e9829c
...
...
@@ -82,7 +82,8 @@ IDF.agg <- function(data,ds,na.accept = 0,
data.agg
<-
pbsapply
(
ds
,
agg.ts
,
simplify
=
TRUE
,
cl
=
cl
)
df
<-
data.frame
(
xdat
=
as.vector
(
data.agg
),
ds
=
rep
(
ds
,
each
=
length
(
data.agg
[,
1
])))
df
$
station
<-
rep
(
station
,
length
(
df
$
xdat
))
df
$
station
<-
station
df
$
year
<-
rep
(
unique
(
as.POSIXlt
(
data.s
[,
names
[
1
]])
$
year
+1900
),
length
(
ds
))
return
(
df
)
# maxima for all durations at one station
}
# which stations should be used?
...
...
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