R/trace_git_csv_value.R
trace_git_csv_value.Rd
Trace Value from CSV through history of local Git repository
trace_git_csv_value(repo, csv, subset_str, select, verbose = T)
repo | path to repository on local filesystem |
---|---|
csv | path to csv file with the repository as root |
subset_str | subset argument to the function |
select | field to select from subsetted row |
data.frame having columns: hex, when, message, v.
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')
).
# 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) # }