Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

data-cleaning/data.log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status CRAN Downloads

data.log

Logging framework for tracking changes in datasets

To try:

git clone https://github.com/data-cleaning/data.log

From R do

setwd("data.log")
devtools::load_all('pkg')

# a function that makes some changes.
change <- function(df){
  # store the old value
  .df <- df
  df[1,1] <- 2*df[1,1]
  # this is the 'hook' to log, if the function is registered.
  write_log(old=.df, new=df)
}

# let's add a logger to the logging registry
# This logger just writes a single line to screen.
lg <- add_logger(shortlog())

# let's assign the logger to a function
set_log(change, lg)

# check the registry
logreg_status()

w1 <- change(women)
w2 <- change(women)

About

Logging framework for data cleaning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published