Skip to content

Commit

Permalink
pass on params_247 to g.part5.savetimeseries
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentvanhees committed Oct 31, 2023
1 parent 27fd394 commit e730204
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/g.part5.R
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ g.part5 = function(datadir = c(), metadatadir = c(), f0=c(), f1=c(),
save_ms5raw_without_invalid = params_output[["save_ms5raw_without_invalid"]],
DaCleanFile = DaCleanFile,
includedaycrit.part5 = params_cleaning[["includedaycrit.part5"]], ID = ID,
sep_reports = params_output[["sep_reports"]])
sep_reports = params_output[["sep_reports"]],
params_247 = params_247)
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion R/g.part5.savetimeseries.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ g.part5.savetimeseries = function(ts, LEVELS, desiredtz, rawlevels_fname,
save_ms5raw_without_invalid = TRUE,
DaCleanFile = NULL,
includedaycrit.part5 = 2/3, ID = NULL,
sep_reports = ",") {
sep_reports = ",",
params_247 = NULL) {
ms5rawlevels = data.frame(date_time = ts$time, class_id = LEVELS,
# class_name = rep("",Nts),
stringsAsFactors = FALSE)
Expand Down
6 changes: 5 additions & 1 deletion man/g.part5.savetimeseries.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
save_ms5raw_without_invalid = TRUE,
DaCleanFile = NULL,
includedaycrit.part5 = 2/3,
ID = NULL, sep_reports = ",")
ID = NULL, sep_reports = ",",
params_247 = NULL)
}
\arguments{
\item{ts}{
Expand Down Expand Up @@ -53,6 +54,9 @@
Character (default = ","). Value used as sep argument in \link[utils]{write.csv}
for writing csv files with the GGIR reports.
}
\item{params_247}{
See \link{GGIR}
}
}
\value{
Function does not provide output, it only prepare data for saving
Expand Down

0 comments on commit e730204

Please sign in to comment.