Index out of bounds error/attribution modeling

Hi,
I am trying to prepare my data for attribution modeling. I receive index out of bound error for 'conversion' even though I have it defined as column row upfront. Any tips on where the error lays?

column=colnames(Kopie_von_CJ_June_2019_converted_3)
Kopie_von_CJ_June_2019_converted_3$tp1 = do.call(paste, c(Kopie_von_CJ_June_2019_converted_3[column], sep=">"))
head(Kopie_von_CJ_June_2019_converted_3$tp1)

Kopie_von_CJ_June_2019_converted_3$`Product Count` <- as.character(Kopie_von_CJ_June_2019_converted_3$`Product Count`)
Kopie_von_CJ_June_2019_converted_3$`Product Count`[which(Kopie_von_CJ_June_2019_converted_3$`Product Count` %in% NA)] <- "0"
View(Kopie_von_CJ_June_2019_converted_3)

channel_fin = Kopie_von_CJ_June_2019_converted_3[,c(10)]
channel_fin = ddply(channel_fin, ~Kopie_von_CJ_June_2019_converted_3$tp1, summarise, conversion=Kopie_von_CJ_June_2019_converted_3$`Product Count`)
head(channel_fin)

H <- heuristic_models(Kopie_von_CJ_June_2019_converted_3, 'tp1', 'conversion', var_value = NULL)
M <- markov_model(Kopie_von_CJ_June_2019_converted_3, 'tp1', 'conversion', var_value = NULL, var_null = NULL, order=1)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.