Page 1 of 1

Is there a faster way to recode this?

Posted: Tue Jun 01, 2021 10:39 am
by Ceecy
Dear Jamovi forum,

I'm here with another question again, last time it was of great help :grinning:
I'm wondering if there's a faster way to recode this column, I want to categorize them, for example, clothes/skincare/makeup/ etc...

The only way I know is to transform and then type in each response. If source == 'Dove', use Skincare. Something like this.

Just wondering if there's a faster way...

Re: Is there a faster way to recode this?

Posted: Tue Jun 01, 2021 10:47 am
by jonathon
it might be a bit quicker if you use a few 'or' statements. like this:

if $source == 'Dove' or $source == 'Garnier'

that's all i can think of.

jonathon

Re: Is there a faster way to recode this?

Posted: Tue Jun 01, 2021 5:55 pm
by sbalci
Will there be regex support in the future?

Re: Is there a faster way to recode this?

Posted: Wed Jun 02, 2021 4:34 am
by jonathon
i'm not sure that would be helpful in this situation, but regex support is certainly something we could add. we'd be open to proposals.

jonathon