Learn R Programming

RavenR (version 2.2.0)

rvn_fortify_xts: Fortify xts object to specific format

Description

Applies the fortify function to an xts object and updates the Index character column to a date column called 'Date'.

Usage

rvn_fortify_xts(x)

Value

tibble format of the xts data

Arguments

x

xts formatted object to fortify to tibble

Details

Useful in preparing data to plotting or other tidy-style analysis. This function is used internally in many RavenR plotting functions.

Examples

Run this code
ff <- system.file("extdata","run1_Hydrographs.csv", package="RavenR")
hyd <- rvn_hyd_read(ff)$hyd
hyd_fortified <- rvn_fortify_xts(hyd)
head(hyd_fortified)

Run the code above in your browser using DataLab