This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Coming from an economics and data science background, I'm really enjoying using Alteryx and R together to make the most of my data. In Economics, Categorical data comes up quite a lot in analyses, and is handled in R quite easily using the "Factor" data type. I was wondering how Alteryx would handle this data type coming out of an R Tool, since in R, its treated somewhere between a string and an integer.
DF2 should give you a factorized version of DF1, which is sent to output 2... DF3 gives you the numeric values of DF2, sent to output 3. You can see that output 2 has the string values for the factors; output three will have the numeric values.
Hmm, thats interesting. Thanks for testing this out! Its good to know that its fairly easy to get the different attributes from a factor.
I wonder if there's been any discussion about creating ordinal or categorical variable types within Alteryx. In a recent workflow, I needed to create numeric proxies for a string variable in order to sort and perform some other operations. My job would've been made much easier by a tool that creates an ordinal field, and my mind immediately went to factors in R.