Package 'tide'

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

Help Index


Edit Manually A Dataframe And Generate Reproducible Code

Description

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.

Usage

tide(dat, copy_to_clipboard = TRUE, write_path = NULL)

Arguments

dat

A data.frame to be edited. Must be the name of the data.frame object only.

copy_to_clipboard

Logical, defaults to TRUE. Copy generated code to the clipboard?

write_path

Character. A file path to save an R script containing the generated code snippets. The directory containing the file must exist.

Details

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'.

Value

A data.frame. Optionally adds a string to the clipboard and/or writes to a file.

Examples

## Not run: beaver1_edited <- tide(beaver1)