vecToMatrix {sephora}R Documentation

Mapping numeric vector to a matrix

Description

Maps a vector (pixel of a satellite time series) to a matrix.

Usage

vecToMatrix(x, lenPeriod = 23)

Arguments

x

a numeric vector whose length must be a multiple of lenPeriod

lenPeriod

a numeric, number of observations per period

Value

A matrix with nrow equal to length(x)/lenPeriod and ncol equal to lenPeriod.

See Also

fill_initialgap_MOD13Q1, phenopar, vecFromData.


[Package sephora version 0.1.31 Index]