readGitHub: Read raw data files that are uploaded on GitHub

Description Usage Arguments Details See Also Examples

View source: R/PhenoDatasets.R

Description

readGitHub allows one to read raw data from GitHub repositories

Usage

1
readGitHub(url, header = TRUE, fill = TRUE, stringAsFactors = FALSE, ...)

Arguments

url

Character string containing the HTML url for the raw data. Supports the same file formats as read.table.

header

Logical. Indicate whether header lines should be included. Default is TRUE.

fill

Logical. Indicate whether blank fields in rows should be filled with "NA" values to insure that rows have equal length. Default is TRUE.

stringsAsFactors.

Logical. Indicate whether character vectors should be automatically converted to factors. Default is FALSE.

...

Further arguments that can be passed to the read.table family

Details

See documentation under ?read.table for specific information regarding data import.

See Also

read.table, connections

Examples

1
2
3
4
5
# Load the Bumpus.csv data file from GitHub
FlowersData <- readGitHub("https://raw.githubusercontent.com/MorphoFun/psa/master/dataraw/Baranzelli_etal_Flowers.csv", sep = ",")

# Review the first 6 rows
head(FlowersData)

MorphoFun/psa documentation built on May 7, 2019, 4:59 p.m.