I am trying to compute a new variable 'combo', which is a combination of two existing variables (Participant, ID).
I can do this easily with the Compute menu with a formula (= Participant + "-" + ID) and it works perfectly. I can see the new variable 'combo' in the Jamovi spreadsheet.
Imagine now I want to do the same but this time using the Rj editor. I can calculate a new variable 'combo2' with the 'paste' function:
Code: Select all
data$combo2 <- paste(data$Participant, data$ID, sep = "-")
Code: Select all
summary(data$combo2)
7319 character character
The problem is that the new computed variable 'combo2' does not show up in the Jamovi spreadsheet!! I have tried several things to see 'combo2' in the spreadsheet but Jamovi always reports an errror. I have tried these lines of code (one at a time) but I get an error message of the type 'update is not an exported object from namespace:jmv' or 'fromDataFrame is not an exported object from namespace:jmv' and similar.
Code: Select all
jmv::update(data)
Code: Select all
jmv::fromDataFrame(data)
Code: Select all
jmvcore::toDataFrame(data)
Code: Select all
jmvcore::setData(data)