bindall: Bindall: binding all particular type datasets in a repository

Description Usage Arguments Value Examples

View source: R/bindall.R

Description

A function for binding all dataset files in a particular repository and writing them into a new dataframe. Current supported input format: CSV, XLSX, and ODS

Usage

1
bindall(repo, type = "xlsx")

Arguments

repo

A string with the name and/or destination of the repository

type

The targeted type of the data files. Currently support XLSX ("xlsx"), ODS ("ods"), and CSV ("csv").

Value

A dataframe containing the binded datasets of all files of the requested type in the repository.

Examples

1
2
3
4
5
6
download.file(url = "https://github.com/ahmad-alkadri/databinders/raw/master/Examples.zip",
              destfile = "Examples.zip")

unzip(zipfile = "Examples.zip")

df <- bindall(repo = "Examples/XLSX/", type = "xlsx")

ahmad-alkadri/databinders documentation built on Nov. 1, 2019, 9:03 p.m.