.balanceCrdsTimes {suntools} | R Documentation |
Balance coordinates and times
Description
Ensures that the 'crds' and 'dateTime' inputs have the same number of rows. If 'crds' has a single row but 'dateTime' has multiple rows, 'crds' is replicated to match 'dateTime'. Similarly, if 'dateTime' has a single row but 'crds' has multiple rows, 'dateTime' is replicated to match 'crds'. If 'crds' and 'dateTime' have different numbers of rows and neither has just one row, an error is thrown.
Usage
.balanceCrdsTimes(crds, dateTime)
Arguments
crds |
A matrix with longitude and latitude coordinates. |
dateTime |
A matrix with year, month, day, timezone, and daylight saving time rows, or a POSIXct time. |
Value
A list with 'crds' and 'dateTime' matrices, both with the same number of rows.
[Package suntools version 1.0.1 Index]