how can I output in my column header the real categorical variable names for each levels. Because it only outputs X1, X2, X3, X4, & X5. Below are my codes to get the buckets and the kable function for the table output.
numerbig <- xtabs(data=lift,formula=Actual~bucket+Llevel)/xtabs(data=lift,formula=weightb~bucket+Llevel)
numerbig[is.na(numerbig)] <- 0
denomb <- xtabs(data=lift,formula=Actual~Llevel)/xtabs(data=lift,formula=weightb~Llevel)
rela2 <- numerbig/rbind(denomb,denomb,denomb,denomb,denomb,denomb,denomb,denomb,denomb,denomb,denomb)-1
Bucket <- c(1:11)
df2 = data.frame(cbind(Bucket, rela2))
kable(df2, results= 'asis', caption= "Lift Relativitiy for Regions", digits=4)
And this is the output of my table. I want to see in the column header the real names of the llevels which are the regions not the x1, x2, x3, x4 & x5.