Home   >   User Resources   >   Online Help   >   apaData.Dates.Latest.Week
 

 

Function index Version 3.0.0

apaData.Dates.Latest.Week(DataMatrix)

Excel=apaData.Dates.Latest.Week(DataMatrix)

Result

Returns the last observation (complete row) of each week (Monday to Sunday).

Syntax

DataMatrix: nObs x nSeries data matrix, the first column containing Excel dates in ascending order

Remarks

Weeks run from Monday to Sunday, independently of the regional settings. The first column must contain Excel dates in ascending order; a header row or a non-numeric or decreasing date returns an error that states the row. Times of day are ignored when assigning a date to a period. The first and last weeks of the data may be incomplete, so their last observation is not necessarily at the end of the period. Blank cells are shown as #N/A.