powered by
Applies the fortify function to an xts object and updates the Index character column to a date column called 'Date'.
rvn_fortify_xts(x)
tibble format of the xts data
xts formatted object to fortify to tibble
Useful in preparing data to plotting or other tidy-style analysis. This function is used internally in many RavenR plotting functions.
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