dot-balanceCrdsTimes: Balance coordinates and times

.balanceCrdsTimesR 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.


suntools documentation built on July 9, 2023, 6:44 p.m.