R/comp_ret3.R

Defines functions comp_ret3

comp_ret3 <- function(x, y) {
library(zoo)

y <- left_join(x, y, by = c("symbol", "monthYear", "cap.usd", "monthly_TV", "price"))

z <- y %>%
  mutate(month = month(monthYear)) %>%
  filter(month == 1) %>%
  #group_by(symbol) %>%
  #filter(monthly_returns <= 200) %>%
  na.omit
}
bczekanski/project7 documentation built on Dec. 15, 2019, 10:44 p.m.