Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

R-tool alteryx - writing output

novita
7 - Meteor

Hi all,

I have a matrix in R and i would like to get the matrix to be written to alteryx output. However i get the output only in single row and not in matrix format. Can someone please explain why my output is only in row and how to get my matrix output from R to Alteryx in the same matrix format.
my R code is :
X=matrix(c(1,2,3,4,5,6),nrow=3,ncol=2,byrow=TRUE)

write.Alteryx(X,1)

 

Although this code outputs the matrix cells in Alteryx in a single row, it hangs(Alteryx keeps running the process) when the matrix is of higher dimension.

 

Thankyou in advance.

.

 

2 REPLIES 2
JohnJPS
15 - Aurora

Try....

 

A=matrix(c(2,3,4,5,6,7),nrow=3,ncol=2,byrow=TRUE)
write.Alteryx(A, 1)
write.Alteryx(as.data.frame(A), 2)

The second output should show the data as, I think, you're desiring.

 

Hope that helps!

novita
7 - Meteor

Thank you, it helped!!

Labels