load_github_data: Load Data from GitHub Repositories

Description Usage Arguments Value Examples

View source: R/load_github_data.R

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

1
load_github_data(github_data_url)

Arguments

github_data_url

The GitHub url of the dataset.

Value

A dataset specified by a GitHub url.

Examples

1
2
3
4
5
6
7
## Not run: 
# Loading different datasets from the Rfssa repository hosted by GitHub.
call <- load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Callcenter.RData")
jambi <- load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Jambi.RData")
montana <- load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Montana.RData")

## End(Not run)

Rfssa documentation built on Jan. 10, 2022, 1:07 a.m.