load_uba_data_from_dir {ubair} | R Documentation |
Load UBA Data from Directory
Description
This function loads data from CSV files in the specified directory. It supports two formats:
Usage
load_uba_data_from_dir(data_dir)
Arguments
data_dir |
Character. Path to the directory containing |
Details
"inv": Files must contain the following columns:
-
Station
,Komponente
,Datum
,Uhrzeit
,Wert
.
-
"24Spalten": Files must contain:
-
Station
,Komponente
,Datum
, and columnsWert01
, ...,Wert24
.
-
File names should include "inv" or "24Spalten" to indicate their format. The function scans
recursively for .csv
files in subdirectories and combines the data into a single data.table
in long format.
Files that are not in the exected format will be ignored.
Value
A data.table
containing the loaded data in long format. Returns an error if no valid
files are found or the resulting dataset is empty.
[Package ubair version 1.1.0 Index]