Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Writing non-dataframe to R node output

Gayatree
6 - Meteoroid

Hello,

 

I'm trying to get the results of "read.transactions()" and aprior (rules) to the output of an R node. It gives this error when I do: "Error in as.list.default(X) :". 

 

Preferably, I'd like to write these out as the objects they are (list of rules, transactions, etc.). However, if it is mandatory to convert to a dataframe before writing them out, I can change it. Tried converting to a df before the "write.Alteryx" function, but that didn't work. 

 

Could somebody please help? I've attached the workflow and some dummy data.

2 REPLIES 2
BrandonB
Alteryx
Alteryx

This is likely an issue with the way that you are using R to convert your list to a data frame prior to output. Take a look at this article on someone doing something similar and creating a data frame with apriori data: 

 

https://stackoverflow.com/questions/25730000/converting-object-of-class-rules-to-data-frame-in-r

Gayatree
6 - Meteoroid

Thanks, Brandon, will check it out.

Labels
Top Solution Authors