Function SPLIT() doesn't work?

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
Vivien
Posts: 2
Joined: Tue Oct 08, 2019 2:30 pm

Function SPLIT() doesn't work?

Post by Vivien »

Hi,

I need to split a date to get only the year. My dataframe has a column Date and I tried to compute or transform variable with function SPLIT() in the category "Text" in the selection list button "fx", but it doesn't work. I don't understand why, despite the help (cf. png in attachment)... Is it a bug or an oversight on my part?

exemple of value in variable "date": 23/01/2015

Transform function:
fx = SPLIT(date,sep='/',3)

Thank you for your help.
Attachments
Screenshot of my jamovi screen with error when i used the function SPLIT()
Screenshot of my jamovi screen with error when i used the function SPLIT()
Error_SPLIT_function.PNG (86.24 KiB) Viewed 2380 times
User avatar
MAgojam
Posts: 421
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

Re: Function SPLIT() doesn't work?

Post by MAgojam »

Hi, Vivien.
Take a look at the screenshot I enclose, where I use "Computed Variable" and the SPLIT () function.
ScreenShot_SPLIT.png
ScreenShot_SPLIT.png (34.31 KiB) Viewed 2367 times
Cheers.
Maurizio
Vivien
Posts: 2
Joined: Tue Oct 08, 2019 2:30 pm

Re: Function SPLIT() doesn't work?

Post by Vivien »

Ok!!! Thanks for your help Maurizio!!!
Post Reply