Is there a faster way to recode this?

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
Ceecy
Posts: 7
Joined: Sun May 16, 2021 2:23 pm

Is there a faster way to recode this?

Post 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...
Attachments
iShot2021-06-01 18.37.05.png
iShot2021-06-01 18.37.05.png (245.53 KiB) Viewed 5235 times
User avatar
jonathon
Posts: 2617
Joined: Fri Jan 27, 2017 10:04 am

Re: Is there a faster way to recode this?

Post 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
sbalci
Posts: 125
Joined: Sat Jan 06, 2018 10:25 pm
Contact:

Re: Is there a faster way to recode this?

Post by sbalci »

Will there be regex support in the future?
User avatar
jonathon
Posts: 2617
Joined: Fri Jan 27, 2017 10:04 am

Re: Is there a faster way to recode this?

Post 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
Post Reply