refresh/reload after modifying dataset

I have a specific assignment for example:
MODEL_MISTAKE_PATTERN_NUMBER <- rpart(formula = PATTERN_NUMBER ~ MISTAKE, data = my_data6, cp = 0.00025)

now 'my_data6' is getting updated and shown correctly on the studio view, however when I run the MODEL_MISTAKE_PATTERN_NUMBER again from console it keeps using the old data stored in my_data6.as a workaround to solve it I run the entire variable assignment again like this:

MODEL_MISTAKE_PATTERN_NUMBER <- rpart(formula = PATTERN_NUMBER ~ MISTAKE, data = my_data6, cp = 0.00025)
any better way to do it ? I mean, as soon as I update the my_data6 I want the variable to get refreshed/reload the changes made on my_data6.

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