JASP compute new column with R and test for substring
In a survey I have a column "Equipment" containing rows with video equipment names separated with commas:
"Camera, Light, Computer, Software, Hard Drives"
"Camera, Computer, Software, Hard Drives"
"Light, Microphone, Computer, Software"
I would like to make a new column "Camera" containing TRUE if the substring "Camera" is
present it the int the "Equipment" Column.
grep("Camera", Equipment, fixed=TRUE)
This just returns the lines with the matching records and is not applied to each row.
Is there a test function in the graphical editor for testing if string contains substring?