Learn R Programming

Rfssa (version 2.1.0)

load_github_data: Load Data from GitHub Repositories

Description

This function was found in https://stackoverflow.com/questions/24846120/importing-data-into-r-rdata-from-github and can be used to load .RData files from GitHub repositories. This function can be used to load the Callcenter, Jambi, and Montana datasets from the Rfssa package hosted by GitHub at https://github.com/haghbinh/Rfssa. It was found that hosting such datasets on GitHub and not including them in the Rfssa R package saved a significant amount of space.

Usage

load_github_data(github_data_url)

Value

A dataset specified by a GitHub url.

Arguments

github_data_url

The GitHub url of the dataset.

Examples

Run this code
if (FALSE) {
# Loading different datasets from the Rfssa repository hosted by GitHub.
load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Callcenter.RData")
load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Jambi.RData")
load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Montana.RData")
}

Run the code above in your browser using DataLab