Gini index and R integration

Hallo,

i want to calculate the Gini index with R integration in Knime of several columns. The R funktion is ineq. The  result should be solved in a new column, Which node is suitable for that? What should i have to do for that? I get always different errors. Can anybody give me an example code for that?

 

Thanks a lot

Hi,

I never tried to compute the Gini index in R, but I did it once using simply a succession of Math formula nodes.

If you really want to use R in Knime, use a R snippet and write something like this:

library(ineq) #ineq needs to be install
knime.out <- Gini(knime.in)

Nicolas

1 Like