How to undo effect of a command in RStudio?

r
rstudio

#1

Hi,

I accidentally made changes to a data frame of 1000+ rows. Now how do I undo that or should I have to start again :frowning: ?

The command which I want to undo is

dataframe1$col [dataframe1$col %in% c(“value1”,“value2”)] <- “value”

PS : I also tried using Undo option from Edit menu but it didn’t work…

Thanks


#2

You need to start again :frowning:


#3

Thanks for replying @aayushmnit

Can you tell me the use of undo option from Edit menu?

Thanks


#4

@as_tech,

If you make a change to code which you want to undo that’s what that option is for, Example: You accidentally deleted some line in the code which you want back you can use the undo functionality.