Giter Club home page Giter Club logo

databinders's Introduction

Databinders

Build Status

Description

The aim of databinders is to solve a common problem of mine: the need for binding many datasets containing the experimental data of my many specimens and recapitulating them into a single dataframe.

Note that this package was basically written as a wrapper of the well-known rio package. It is a swiss-army package for I/O operations in R and also my personal preferred go-to package for working with many types of data.

Installations

To install this package, simply launch R in your computer, either through the IDE (ex: RStudio) or the terminal, and type:

devtools::install_github("ahmad-alkadri/databinders")

Note that if you don’t have yet rio package installed, installing this package will also install rio in your R.

Examples

I’ve prepared a zipped file containing the Iris dataset, separated into three files in excel, csv, and ods format based on their species name. You can head over to the folder through this link now to check them out. Anyway, this facilitates in showing the examples on how this package work. To try it out, just type:

library(databinders)

#Download the zipped Examples folder from GitHub
download.file(url = "https://github.com/ahmad-alkadri/databinders/raw/master/Examples.zip", 
              destfile = "Examples.zip")

#Unzip the compressed file
unzip(zipfile = "Examples.zip")

#Bind the excel files in the XLSX subrepository
df <- bindall(repo = "Examples/XLSX/", type = "xlsx")

#Print the head() of the dataframe
print(head(df))
##   sepal length sepal width petal length petal width        iris
## 1          5.1         3.5          1.4         0.2 Iris-setosa
## 2          4.9         3.0          1.4         0.2 Iris-setosa
## 3          4.7         3.2          1.3         0.2 Iris-setosa
## 4          4.6         3.1          1.5         0.2 Iris-setosa
## 5          5.0         3.6          1.4         0.2 Iris-setosa
## 6          5.4         3.9          1.7         0.4 Iris-setosa

databinders's People

Contributors

ahmad-alkadri avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.