get_metadata_years {sephora}R Documentation

Returns metadata to construct x-axis and legend of plot.sephora

Description

Metadata either from a numeric vector or a sephora-class object

Usage

get_metadata_years(x, startYear = 2000, endYear = 2021, frequency = 23)

Arguments

x

numeric vector or sephora-class object

startYear

integer, x initial year

endYear

integer, x final year

frequency

integer giving number of observations per season. Default is 23.

Value

A list of 2 components:

xDates

date vector containing DoY (acquisition date) using format yyyy-mm-dd

xLabels

character vector containing period of study years using format "'YY"

Examples

x <- deciduous_polygon[1,]
y <- get_metadata_years(x=x)
str(y)


[Package sephora version 0.1.31 Index]