RStudio seems to miss commands in some scripts. Seen this a couple of times in different scripts.

I don't have a way yet to do an MWE with the problem but I can reproduce it in a current script. Here is the line that fails to execute when the entire script runs but does fine when it is directly executed.

df3[grepl('Use', df3$CategoryA),]$MGD = -1 * df3[grepl('Use', df3$CategoryA),]$MGD

It reverses the sign of some data. I'll see if this has the same behavior in If anyone sees something suggestive of the nature of the problem, pls advise.



I retract that last problem. I think the 'problem' has to do with the logic of order of the calculations that get flummoxed when things are repeated. User error.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.