Closed herbivores closed 4 years ago
Hi, i run the following code as described in https://www.business-science.io/finance/2020/02/26/r-for-excel-users.html
devtools::install_github("business-science/tidyquant")
library(tidyverse) library(tidyquant) library(knitr)
When i run the following code i receive:
FANG %>% pivot_table( .columns = symbol, .values = ~ SUM(is.na(adjusted)) ) %>% kable()
FANG %>% pivot_table( .rows = c(symbol, ~ QUARTER(date)), .columns = ~ YEAR(date), .values = ~ (LAST(adjusted) - FIRST(adjusted)) / FIRST(adjusted) ) %>% kable()
I receive the following error message and attached backtrace
Error: expr must quote a symbol, scalar, or call Call rlang::last_error() to see a backtrace
expr
rlang::last_error()
I'm not able to reproduce this issue. Are you still having the issue? I'm closing & we can reopen if you are still having.
Hi, i run the following code as described in https://www.business-science.io/finance/2020/02/26/r-for-excel-users.html
devtools::install_github("business-science/tidyquant")
Load the following libraries.
library(tidyverse) library(tidyquant) library(knitr)
When i run the following code i receive:
Pivot Tables
FANG %>% pivot_table( .columns = symbol, .values = ~ SUM(is.na(adjusted)) ) %>% kable()
FANG %>% pivot_table( .rows = c(symbol, ~ QUARTER(date)), .columns = ~ YEAR(date), .values = ~ (LAST(adjusted) - FIRST(adjusted)) / FIRST(adjusted) ) %>% kable()
I receive the following error message and attached backtrace