Learn R Programming

sephora (version 0.1.31)

get_metadata_years: 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)

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"

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.

Examples

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

Run the code above in your browser using DataLab