JASP doesn't compute mean of multiple variables in new column
I need to compute the mean of multiple variables(/columns) as a new variable in JASP, but I can't get it to work.
I've tried to do it via R code by putting in: (var1 + var2 + var3) / 3 for example, but don't get any output (no error message either though).
I've also tried using the dataframe method: apply(data.frame(var1, var2, var3), 1, mean, na.rm=TRUE)
or the drag&drop feature, both with the same result.
I suspect that the reason is that var1, var2 and var3 don't have numeric values in their columns. Instead they have the scale labels used in the questionnaire, i.e. "Strongly disagree ", "" ... "Strongly agree ". So I suspect that JASP doesn't read the numeric values that are behind those labels for some reason.
Is there anything I can do about that? Or might there be a different reason, that I haven't thought of yet?
Thank you and best regards