I accidentally exported a data frame in R and lost over 5,000 obs. because of that. I could reproduce the data set, but that would take me abot 24 hours of screen time.
Is there any way I can restore the xlsx-file to the last version before I hit
export(name.df, "name.xlsx")
?
The solutions suggested online don't work, i.e. opening the file in Excel and checking for last unsaved versions to restore.
To give more details,
the data set was just fine, then I accidentally deleted half of it by using
merge()
and saved it/wrote it over under the same file name using the export() function from the package
rio
.