Title: | Manually Edit A Dataframe, Get Code to Reproduce It |
---|---|
Description: | Adjust a data.frame manually with R's inbuilt spreadsheet-like data editor and have simple base-R code returned that reproduces the changes. |
Authors: | Matt Dray [aut, cre] |
Maintainer: | Matt Dray <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-11-09 04:37:41 UTC |
Source: | https://github.com/matt-dray/tide |
Calls the edit function to invoke a spreadsheet-like data-editor window where you can edit a data.frame object 'by hand'. Returns the edited object and optionally adds code to the clipboard that can recreate the edited object from the original.
tide(dat, copy_to_clipboard = TRUE, write_path = NULL)
tide(dat, copy_to_clipboard = TRUE, write_path = NULL)
dat |
A data.frame to be edited. Must be the name of the data.frame object only. |
copy_to_clipboard |
Logical, defaults to |
write_path |
Character. A file path to save an R script containing the generated code snippets. The directory containing the file must exist. |
As noted in dataentry, 'the data entry editor is only available on some platforms and GUIs' and 'The details of interface to the data grid may differ by platform and GUI'.
A data.frame. Optionally adds a string to the clipboard and/or writes to a file.
## Not run: beaver1_edited <- tide(beaver1)
## Not run: beaver1_edited <- tide(beaver1)