knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

tidyxts

The goal of {tidyxts} is to allow user to use some tools from {dplyr} on xts (https://github.com/joshuaulrich/xts)

Installation

You can install tidyxts from github with:

# install.packages("devtools")
devtools::install_github("ThinkR-open/tidyxts")

Example

library(xts)
library(tidyxts)
data(sample_matrix)
sample.xts <- as.xts(sample_matrix, descr='my new xts object')
sample.xts %>% select(Open,Close) %>% head()
sample.xts %>% select(1,3) %>% head()
sample.xts %>% slice(c(1,3)) %>% head()


ThinkR-open/tidyxts documentation built on May 19, 2019, 10:48 p.m.