Learn R Programming

dataversionr (version 0.9.0)

update_dv: Update dv

Description

Update a versioned dataset with a new version of the data.

Usage

update_dv(df, destination)

Value

TRUE

Arguments

df

a data frame. Must be structurally identical to the dv.

destination

a local directory path or an arrow SubTreeFileSystem

Examples

Run this code
temp_dir <- tempfile()
dir.create(temp_dir, recursive = TRUE)
df <- data.frame(a = 1:5, b = letters[1:5])
new_df <- data.frame(a = 2:5, b = letters[2:5])
create_dv(df, temp_dir)

update_dv(new_df, temp_dir)

Run the code above in your browser using DataLab