Fix an Object

Share:

Description

fix invokes edit on x and then assigns the new (edited) version of x in the user's workspace.

Usage

1
fix(x, ...)

Arguments

x

the name of an R object, as a name or a character string.

...

arguments to pass to editor: see edit.

Details

The name supplied as x need not exist as an R object, in which case a function with no arguments and an empty body is supplied for editing.

Editing an R object may change it in ways other than are obvious: see the comment under edit. See edit.data.frame for changes that can occur when editing a data frame or matrix.

See Also

edit, edit.data.frame

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
 ## Assume 'my.fun' is a user defined function :
 fix(my.fun)
 ## now my.fun is changed
 ## Also,
 fix(my.data.frame) # calls up data editor
 fix(my.data.frame, factor.mode="char") # use of ...

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.