Skip to content

A Shiny R app for splitting large text files into smaller files with equal number of records

License

Notifications You must be signed in to change notification settings

Dorsa-Arezooji/SplittR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SplittR

A Shiny R app for splitting large text files into smaller files with equal number of records

License: CC BY-NC-SA 4.0

Required Libraries

library(shiny)
library(shinythemes)
library(dplyr)

What does it do?

➤ Suppose you have a large text file containing a number of records, for instance an autogenerated report log where:

  • each record starts with a certain character or string (record identifier)
  • records may have different numbers of fields
  • records may have different numbers of lines.

➤ Now, you need to split this large file into a number of smaller files where:

  • all files have the same number of records
  • all files are consistent with the original file in terms of format and text (i.e. no character removed or added)
  • the order of the records is not changed

SplittR DOES THAT!

How does it work?

  1. Browse your local directory to find and upload your text file
  2. Type the record identifier, i.e a string or character that each new record starts with, as it appears in your file without any extra quotations
  3. Use the slider to choose the number of output splits
  4. Click on the Split! button to split the file
  5. Once the split is done, you can see the results below - If you receive an error, make sure to enter the record identifier correctly!
  6. Use the download button to download a zip file containing your split files!

How to use it?

✓ You can deploy and use it locally or

✓ go to https://dorsa-arezooji.shinyapps.io/splittr/.

About

A Shiny R app for splitting large text files into smaller files with equal number of records

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages