Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference betweeen Fix and Edit in R

Tags:

r

I have a data frame having 1000 rows.I can use fix command or edit command in R to view and edit the data manually.I can't find any difference between the two. I want to know which is the efficient way of editing the data manually? Help me out in the same...

like image 607
Harish Avatar asked Dec 15 '22 10:12

Harish


1 Answers

fix() invokes edit on x and then assigns the new version to the same object.

Example:

fix(my_dataFrame) #now my_dataFrame is changed

In edit() - we need to assign it to an object

my_new_dataFrame = edit(my_dataFrame)

You can read up on them - edit() and fix()

like image 56
Kartheek Palepu Avatar answered Jan 03 '23 00:01

Kartheek Palepu