How to reverse accidentally changing an entire table from a package?

I'm a little new to RStudio, so I was wondering if there is any option for this? I recently installed a package called "dslabs" , and than started to play around with it and practice. However, I accidentally changed the "Heights" table, where it has two columns of values(Sex, Height).

I accidentally used the script

heights$sex = "Female"
So it changed all the rows to "Female". Is there any way to fix that?

Thank you in advance.

I think you did not change the table's source data, you only changed the object into which the data were read. You should be able to reload the data from its source and start over.

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