Sadly edit() doesn't work on RStudio if you want to use it you would have to use the R GUI, I think the reason for this is to promote reproducibility, all changes made to your data should be documented with code and you should avoid manual data editing.