rvn_fortify_xts: Fortify xts object to specific format

View source: R/rvn_utilities.R

rvn_fortify_xtsR Documentation

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)

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.

Value

tibble format of the xts data

Examples

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


rchlumsk/RavenR documentation built on April 19, 2024, 5:15 a.m.