[R] Column 'xyz' does not exist

Tolulope Adeagbo to|u|ope@de@gbo @end|ng |rom gm@||@com
Tue Jul 30 11:03:01 CEST 2019


So I'm having this error:

column 'Previous stage does not exist'

bal_matrix = loan_data_2 %>% as.tibble() %>%
  dplyr::arrange(Account_number) %>%
  dplyr::group_by(Previous_stage, Current_stage) %>%
  dplyr::summarise(
    Total_bal = sum(Balance, na.rm = TRUE)
  ) %>%
  tidyr::spread(key = Current_stage, value = Total_bal, fill = 0)

Please assist.

	[[alternative HTML version deleted]]



More information about the R-help mailing list