calcTimes | R Documentation |
For the column specified in imageTimes, having converted it to POSIXct
if not already converted, calculates for each value the number of intervalUnits
between the time and the startTime
. Then the number of timePositions
within the intervals
is calculated for the values in imageTimes
. The function difftimes
is used in doing the calculations, but the results are converted to numeric
. For example intervals
could correspond to the number of Days after Planting (DAP) and the timePositions
to the hour within each day.
calcTimes(data, imageTimes = NULL, timeFormat = "%Y-%m-%d %H:%M",
intervals = "Time.after.Planting..d.", startTime = NULL,
intervalUnit = "days", timePositions = NULL)
data |
A |
imageTimes |
A |
timeFormat |
A |
intervals |
A |
startTime |
A |
intervalUnit |
A |
timePositions |
A |
A data.frame
, being the unchaged data data.frame
when
imageTimes
is NULL
or containing
either intervals and/or timePositions depending on which is not NULL
.
Chris Brien
as.POSIXct
, imagetimesPlot
.
data(exampleData)
raw.dat <- calcTimes(data = raw.dat,
imageTimes = "Snapshot.Time.Stamp", timePositions = "Hour")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.