panel.R~ 811 bytes
library(here)
source(file.path(dirname(here()), 'init.R'))
source(file.path(dirname(here()), 'processing', 'extract.R'))
# Time panel
panel = function (filedirs, filenames, pan) {
    file_path = file.path(computer_data_path, filedirs, filenames)
    for (p in pan) {
        # If there is not a dedicated figure directory it creats one
        out_dir = file.path(res_dir, filedirs)
        if (!(file.exists(out_dir))) {
            dir.create(out_dir)
        # Get info
        info = extract_info(filedirs, filenames)
        # Create name for the figure file
        out_file = paste('Panel_', info$code, '.png', sep='')
        # Extract data
        data = extract_data(filedirs, filenames)
    return (NA)
# panel('', 'H5920011_HYDRO_QJM.txt')