trace_git_csv_value: Trace Value from CSV through history of local Git repository

View source: R/trace_git_csv_value.R

trace_git_csv_valueR Documentation

Trace Value from CSV through history of local Git repository

Description

Trace Value from CSV through history of local Git repository

Usage

trace_git_csv_value(repo, csv, subset_str, select, verbose = T)

Arguments

repo

path to repository on local filesystem

csv

path to csv file with the repository as root

subset_str

subset argument to the function subset quoted as string to extract row of data from csv

select

field to select from subsetted row

Details

If you have trouble running this function, please make sure: 1) your path resolves to a local Git repository, 2) you have the latest git2r (try devtools::install_github('ropensci/git2r')).

Value

data.frame having columns: hex, when, message, v.

Examples


## Not run: 
# trace the value for a csv from github repository
d = trace_git_csv_value('~/github/ohicore', 'inst/extdata/scores.Global2013.www2013.csv', "goal=='ECO' & dimension=='status' & region_id==237", 'score')
head(d)

## End(Not run)


OHI-Science/ohicore documentation built on Dec. 10, 2023, 5:45 a.m.