Skip to contents

This function uses the contents of the journal file to find where are stocked formatted data and extract them to data.frame. This function gives also the possibility to save those data.frame directly.

Usage

extract.stat.log(origin, archive = NULL, destination = NULL)

Arguments

origin

character, path to the directory where journal is stored

archive

string character, pattern to find the journal. If set to NULL, any .log file will be searched.

destination

character, optional path to the directory where results should be saved. If set to NULL, results are not saved.

Value

A list of data.frame depending on information stored in the journal.

Author

Frédéric Grelot

Examples


if (FALSE) {
origin = "floodam.data/dev/data"
archive = "geo_siret"
result = extract.stat.log(origin, archive)
}