Skip to content

Commit

Permalink
removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
l-k- committed Sep 26, 2023
1 parent b5f1351 commit 7e84a9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions R/g.getmeta.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ g.getmeta = function(datafile, params_metrics = c(), params_rawdata = c(),
}
}
params_general[["windowsizes"]] = c(ws3,ws2,ws)
data = PreviousEndPage = PreviousStartPage = starttime = wday = weekdays = wdayname = c()
data = PreviousEndPage = PreviousStartPage = starttime = wday = wdayname = c()

filequality = data.frame(filetooshort = FALSE, filecorrupt = FALSE,
filedoesnotholdday = FALSE, NFilePagesSkipped = 0, stringsAsFactors = TRUE)
Expand Down Expand Up @@ -350,11 +350,11 @@ g.getmeta = function(datafile, params_metrics = c(), params_rawdata = c(),
data,
P, header, desiredtz = params_general[["desiredtz"]],
sf, i, datafile, ws2,
starttime, wday, weekdays, wdayname, configtz = params_general[["configtz"]])
starttime, wday, wdayname, configtz = params_general[["configtz"]])
starttime = SWMT$starttime
meantemp = SWMT$meantemp
use.temp = SWMT$use.temp
wday = SWMT$wday; weekdays = SWMT$SWMT$weekdays; wdayname = SWMT$wdayname
wday = SWMT$wday; wdayname = SWMT$wdayname
params_general[["desiredtz"]] = SWMT$desiredtz; data = SWMT$data

if (mon == MONITOR$ACTIGRAPH || mon == MONITOR$VERISENSE ||
Expand Down
4 changes: 2 additions & 2 deletions R/get_starttime_weekday_meantemp_truncdata.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
get_starttime_weekday_meantemp_truncdata = function(temp.available, monc, dformat, data,
P, header, desiredtz, sf, i, datafile,
ws2, starttime, wday, weekdays, wdayname, configtz = NULL) {
ws2, starttime, wday, wdayname, configtz = NULL) {
#ensures that first window starts at logical timepoint relative to its size
# (15,30,45 or 60 minutes of each hour)
start_meas = ws2/60
Expand Down Expand Up @@ -133,5 +133,5 @@ get_starttime_weekday_meantemp_truncdata = function(temp.available, monc, dforma
}
}
invisible(list(starttime=starttime, meantemp=meantemp, use.temp=use.temp, wday=wday,
weekdays=weekdays, wdayname=wdayname, desiredtz=desiredtz, data=data))
wdayname=wdayname, desiredtz=desiredtz, data=data))
}
6 changes: 1 addition & 5 deletions man/get_starttime_weekday_meantemp_truncdata.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
\usage{
get_starttime_weekday_meantemp_truncdata(temp.available, monc,
dformat, data, P, header, desiredtz, sf, i,
datafile, ws2, starttime, wday, weekdays, wdayname, configtz = NULL)
datafile, ws2, starttime, wday, wdayname, configtz = NULL)
}
\arguments{
\item{temp.available}{
Expand Down Expand Up @@ -59,10 +59,6 @@
Once calculate it is remembered and fed into this function again,
such that it does not have to be recalulated.
}
\item{weekdays}{
Once calculate it is remembered and fed into this function again,
such that it does not have to be recalulated.
}
\item{wdayname}{
Once calculate it is remembered and fed into this function again,
such that it does not have to be recalulated.
Expand Down

0 comments on commit 7e84a9d

Please sign in to comment.