Skip to content

Cardman08/CSV-SQL-TableMerger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CSV/SQL Merger for Data Preprocessing

This Shiny application allows users to merge two tabular data sources—such as CSV or TXT files, optionally with SQL dump support—into a single, harmonized data frame. It is designed for pre-processing fragmented lab data before importing into systems like eLabFTW.

Screenshot

screenshot_sql_merger

Features

  • Upload two files in .csv or .txt format
  • Extract column headers from CREATE TABLE SQL dump files (if headers are missing)
  • Configure key columns for merging
  • Join types supported:
    • Inner Join
    • Outer Join
    • Left Join
    • Right Join
  • Automatic renaming of columns to avoid duplication
  • Preview of input files and final merged result
  • Export to .csv or .xlsx format with custom filename

Intended Use

This tool is useful for consolidating legacy inventory files from multiple departments or sources. It reduces the manual effort of combining and cleaning data prior to ELN import and supports transparent, structured data workflows.

Installation and Usage

  1. Install R and RStudio
  2. Install dependencies:
install.packages(c("shiny", "readr", "writexl", "stringr", "DT", "shinyjs"))
  1. Launch the application:
shiny::runApp("path/to/csv-sql-merger")

Dependencies

R ≥ 4.0 Packages:

  • shiny
  • readr
  • writexl
  • stringr
  • DT
  • shinyjs

File Structure

  • app.R – Main application code
  • screenshot_sql_merger.png – Placeholder for interface screenshot
  • readme.html – Optional help documentation

About

Merge CSV/TXT/SQL files for harmonized ELN import; supports joins and preview with export

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages