Learn R Programming

metools (version 1.0.0)

p.seqdatebreaks: Create Date Interval

Description

p.seqdatebreaks is a function to break a time axis from graphic in specific interval. This function are recommended to select timeinterval of graphics created with metools p.functions.

Usage

p.seqdatebreaks(x, periodicity)

Arguments

x

Time data from a Timeserie

periodicity

Time interval (string)

Value

Return a vector with timeinterval.

Examples

Run this code
# NOT RUN {
x <- seq.Date(from=as.Date("2019-01-01"),to=as.Date("2020-01-01"),by=1)
 p.seqdatebreaks(x,periodicity= "2 month")

# }

Run the code above in your browser using DataLab