One-Hot Encoding Categorical in tableau with Rserve

So i was wanting to create a multivariate linear regression model in tableau that connects to the analytics extension to allow the use of R scripts in tableau. I have a few categorical variables that i was wanting to convert that ordinal encoding wasn't sufficient enough for such as variables like admissionType (urgent, emergency, etc.) , ethnicity, and a few others. I saw that you could add a r script in tableau prep to perform the encoding on all categorical variables but was wondering if there was a way in tableau?

So i actually reached a solution on my own. I am going to feed the data into tableau prep and then dummy code the categorical variables with multiple levels with an r script/or just transformations in prep and then feed it back into tableau.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.