Load Multiple 'csv' and 'txt' Tables

Allows users to easily read multiple comma separated tables and create a data frame under the same name. Is able to read multiple comma separated tables from a local directory, a zip file or a zip file on a remote directory.


CRAN_Status_Badge Downloads Travis-CI Build Status

NOTE: to all familiar users, the "txt" parameter has been replaced in loadcsv_multi and fread_folder for the more suitable "extension" parameter, which now allows for a "BOTH" argument in either upper or lower case.

news for Mac OSX and Linux users:

*there is now a choose_dir function available for you, similar to choose.dir on windows. for more details check the help page for the function or the documentation page for choose.dir.

why should use easycsv?

because reading multiple csv files is a hassle, and you want an easy to use function to read all of them, either from a central folder, a remote website or a handy zip file.

how do you use easycsv?

well its easy, if all your csv files are inside a folder, just use loadcsv_multi(my_folder) or loadcsv_multi(my_folder, extension = "BOTH") if you have comma separated text files. the same easy and simple use is available for .zip files (loadcsvfromZIP(my_zip_file)), and .zip files on a remote url (loadZIPcsvfromURL(my_remote_zip_file)).

faster version of loadcsv_multi now available, fread_folder which is based on data.table's fread function

how do you install easycsv?

easycsv is now on CRAN and can be installed like any other library with this code:

install.packages("easycsv")

for the most updated versions developer version, it is still recommended to download from github since i add and improve functions whenever i can, but i don't allways have time to update documentation to cran standards.

The the developer version can be downloaded with the following code:

if ("devtools" %in% rownames(installed.packages()) == FALSE) {
install.packages("devtools")
}
devtools::install_github("bogind/easycsv")

and load it with library(easycsv) like any other library.

News


title: "NEWS" output: html_document

easycsv 1.0.2 09/08/2017

  • Added fread_folder() for faster table reading with data.table::fread and suggests for data.table

easycsv 1.0.3 10/08/2017

  • 'txt' parameter no longer exists, changed to extension and now takes as argument either 'TXT','CSV' or 'BOTH', in lower or upper case, this extends to loadcsv_multi and fread_folder.

easycsv 1.0.5 19/08/2017

*added Identify.OS and choose_dir, as utility functions. meaning that even for Mac OSX and Linux users if the local directory in functions is not entered you can choose it interactively through a popup widget window.

easycsv 1.0.6 30/11/2017

*adde fread_zip which is the fread version of loadcsvfromZIP, also added a prefix option for fread_folder and fread_zip, accepts only strings of length 1.

easycsv 1.0.7 23/01/2018

  • fixed choose_dir for linux, had a problem with capturing returned value

easycsv 1.0.8 27/04/2018

  • temporary fix to fread_folder to adapt to the changes in data.table::fread.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("easycsv")

1.0.8 by Dror Bogin, 9 months ago


https://github.com/bogind/easycsv


Report a bug at https://github.com/bogind/easycsv/issues


Browse source code at https://github.com/cran/easycsv


Authors: Dror Bogin [aut, cre]


Documentation:   PDF Manual  


GPL-2 license


Depends on data.table


Imported by SIRItoGTFS, gimmeTools.


See at CRAN