y = cbind(knime.in$"Minuti_T", knime.in$"NumeroRilevazioni_T",knime.in$"LatitudineMedia_T")
pippo = manova (y ~ group, data)
pippo
risultato = data.frame(pippo)
knime.out <- risultato
But if I don't convert pippo in a data frame with risultato = data.frame(pippo) I get this error:
Execute failed: Supporting 'data.frame' as return type, only.
So how can I output the result of the manova (I have the right result in "View: R Std Output" but not in "Data Output") in order to connect the output of "View: R Std Output" to the next node?
I used an other package to perform the Manova (same results of course). I used the package car. Then I used the str() instruction within the R snippet in order to identify the slots. Finally I casted the lists objects identified by the slots to dataframes and attributed the knime.out variable to each of the dataframes.
y = cbind(knime.in$"B", knime.in$"C", knime.in$"D", knime.in$"E", knime.in$"F", knime.in$"G", knime.in$"H")
pippo = Manova (lm(y ~ group, data))
str(pippo) #helps to identify the slots (for example SSP) by the Eval script function in the Knime's R node
knime.out<-data.frame(pippo$SSP)
As I'm lazy and find the R data manipulations tedious (good for statistics but not really friendly to manipulate the datas). I performed the Manova two times in order to extract the two results.You should do what remains by yourself easily.
Congrats fabienc! Thank you very much; It works perfectly. If you don't mind I have only another question for you: do you know how to extract the main diagonal of the matrix (that I have as a result of the RSnippet) in a unique row? Is there a node to do this task?
well, i'm not very found of R for those things. It will be far more easy in Python in one single step. But I assumed you hadn't a Python installed on your computer to handle it from Knime. So I did it in pure Knime. We should find something less tricky but it's all that came into my mind for the moment. Whatever you want to do with Knime there is always a solution. I hope it is what you intended to do.
If you want to test this other version. It should work whatever the size of your original table (except if you have only one column) but only if it is a square matrix of course. And yes, I do agree that this is a little bit too much for what it really does.
Wow, fabianc, that really is a lot of stuff you do there. Congrats on all the work, but maybe you focused on one direction too hard? ;)
Here are two simpler ideas for the central part, but lacking some of the housekeeping/decorating. But I still couldn't find a one-step-solution, even with all the java nodes.