My code looks as follow:
get_postcoefs <- function(portfo){ my_dat <- prerank_betas %>% filter(portfo == portfo) %>% lm(