startpoints: Finds the beginning of a period in an xts matrix

Description Usage Arguments Value

Description

This function is similar to endpoints except that it finds the start of the period rather than the end of period.

Usage

1
startpoints(x, on = "months", offset = 1, k = 1)

Arguments

x

an xts matrix

on

the string name for the period to extract (like endpoints)

offset

the offset from the start of the period (offset = 1 at start date)

k

how many periods to skip (k=1 means none are skipped)

Value

Returns a vector of the row positions in the matrix


jeanmarcgp/xtsanalytics documentation built on May 19, 2019, 12:38 a.m.