rvn_fortify_xts {RavenR} | R 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)
[Package RavenR version 2.2.2 Index]