View source: R/fct_edit_data_frame.R
edit_data_frame | R Documentation |
edit_data_frame
applies edits that a user has made to data rendered in a DataTables object
in a web browser to the underlying (sf) data frame on the server.
edit_data_frame(tmp_edits, df_to_edit, df_to_edit_not_sf, layer)
tmp_edits |
data frame storing the edits that a user has made to values in a DataTables object in their UI. |
df_to_edit |
Data frame or spatial data frame (sf) representing the layer in GeoPackage that is rendered in the DataTables object which the user edits will be applied to. |
df_to_edit_not_sf |
Data frame representing the layer in GeoPackage (i.e. |
layer |
single element character vector of the name of layer in the GeoPackage that edits are applied to. |
This function is designed to be used in Shiny applications to support interactive cleaning of attribute data in GeoPackages.
A two-element list. The first element is the data frame with edits applied to it. The second element is a log recording the status of attempts to apply user edits to the underlying data frame object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.